[问题]安装JAVA环境遇到的问题

系统安装、升级讨论
回复
lsn_china
帖子: 26
注册时间: 2008-05-03 23:11
送出感谢: 1 次
接收感谢: 0

[问题]安装JAVA环境遇到的问题

#1

帖子 lsn_china » 2008-06-04 19:09

事情的经过是这样的:
我从SUN网站下了jdk-6u6-linux-i586.bin文件到桌面上
安装也是在桌面进行的,一路正常,于是按照网上的配制方法配置:

键入命令:sudo gedit /etc/environmetn

配置path路径:
JAVA_HOME=/usr/lib/jvm/java-6-sun

PATH=$PATH:/usr/lib/jvm/java-6-sun/bin

CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib

重启计算机

重新启动无法登录,输完密码后弹出一个窗口关于‘session..’什么的,总之是无法登录。
于是我进入到‘覆盖模式’把设置的PATH3行给删除,这样才能进入系统。
进入系统后把装载桌面的JAVA给删除了,把JAVA的BIN安装文件MV到/USR/LIB/JVM目录,JVM是创建的。然后在这个目录下运行JAVA安装文件,得到下面的结果。无法安装。是什么原因?

$ ./jdk-6u6-linux-i586.bin 我运行了这个命令
Sun Microsystems, Inc. Binary Code License Agreement

for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6

SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT
CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT. INDICATE ACCEPTANCE BY
SELECTING THE "ACCEPT" BUTTON AT THE BOTTOM OF THE
AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE "DECLINE" BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.

1. DEFINITIONS. "Software" means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error
corrections provided by Sun, and any user manuals,
programming guides and other documentation provided to you

Do you agree to the above license terms? [yes or no]
y
Unpacking...
./jdk-6u6-linux-i586.bin: 450: cannot create install.sfx.6058: Permission denied
Checksumming...
/usr/bin/sum: install.sfx.6058: No such file or directory
[: 477: 54851: unexpected operator
[: 477: 68840: unexpected operator
chmod: cannot access `install.sfx.6058': No such file or directory
Extracting...
./jdk-6u6-linux-i586.bin: 480: ./install.sfx.6058: not found
Failed to extract the files. Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.
回复

回到 “系统安装和升级”