很菜的我今天在LE2005上安装 JDK 的经历,希望能给大家提供些帮助。
时间:2005-06-08
来源:互联网
今天安装了一下 JDK jdk-1_5_0_03,本来想在java.sun.com下载可是不知道是怎么回事在公司与在家都不能下载是在是郁闷啊,在 JAVA坛子上发了个帖子求助好心的JAVA版主fei给了他的ftp下载地址感谢他提供这么快的FTP服务器,下面是下载地址。
ftp://202.96.64.144/pub/jdk-1_5_0_03-linux-i586.bin
下载回来以后复制到 /usr/local 中 然后执行 chmod 755 jdk-1_5_0_03-linux-i586.bin 这样就可以运行了,否则有可能无法运行的说。。。。。。
接着敲 ./jdk-1_5_0_03-linux-i586.bin 然后会*出
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA 2 PLATFORM STANDARD EDITION DEVELOPMENT KIT 5.0
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,
--More--
按几下空格以后会出现下面的话
Do you agree to the above license terms? [yes or no]
问你是否接受协议,一定要敲 y 并且按回车不然不让装哦!
接着提示 Unpacking... 开始解压并开始安装
等到出现
Creating jdk1.5.0_03/lib/tools.jar
Creating jdk1.5.0_03/jre/lib/rt.jar
Creating jdk1.5.0_03/jre/lib/jsse.jar
Creating jdk1.5.0_03/jre/lib/charsets.jar
Creating jdk1.5.0_03/jre/lib/ext/localedata.jar
Creating jdk1.5.0_03/jre/lib/plugin.jar
Creating jdk1.5.0_03/jre/lib/javaws.jar
Creating jdk1.5.0_03/jre/lib/deploy.jar
Done.
的时候就安装完毕了,接下来就是设置系统了。
看JAVA坛子里面的帖子说是要如下设置,经过实验发现不行。。。。
编辑 .bashrc 文件加入
set JAVA_HOME=/usr/java/j2sdk1.4.2_06
export JAVA_HOME
set PATH=$PATH:$JAVA_HOME/bin
export PATH
set CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
重新启动系统多次也未见好使,最后发现那三个 set 是多余的,改成下面的就 OK 了!
JAVA_HOME=/usr/java/j2sdk1.4.2_06
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
一会再去弄个IDE装上玩玩......
ftp://202.96.64.144/pub/jdk-1_5_0_03-linux-i586.bin
下载回来以后复制到 /usr/local 中 然后执行 chmod 755 jdk-1_5_0_03-linux-i586.bin 这样就可以运行了,否则有可能无法运行的说。。。。。。
接着敲 ./jdk-1_5_0_03-linux-i586.bin 然后会*出
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA 2 PLATFORM STANDARD EDITION DEVELOPMENT KIT 5.0
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,
--More--
按几下空格以后会出现下面的话
Do you agree to the above license terms? [yes or no]
问你是否接受协议,一定要敲 y 并且按回车不然不让装哦!
接着提示 Unpacking... 开始解压并开始安装
等到出现
Creating jdk1.5.0_03/lib/tools.jar
Creating jdk1.5.0_03/jre/lib/rt.jar
Creating jdk1.5.0_03/jre/lib/jsse.jar
Creating jdk1.5.0_03/jre/lib/charsets.jar
Creating jdk1.5.0_03/jre/lib/ext/localedata.jar
Creating jdk1.5.0_03/jre/lib/plugin.jar
Creating jdk1.5.0_03/jre/lib/javaws.jar
Creating jdk1.5.0_03/jre/lib/deploy.jar
Done.
的时候就安装完毕了,接下来就是设置系统了。
看JAVA坛子里面的帖子说是要如下设置,经过实验发现不行。。。。
编辑 .bashrc 文件加入
set JAVA_HOME=/usr/java/j2sdk1.4.2_06
export JAVA_HOME
set PATH=$PATH:$JAVA_HOME/bin
export PATH
set CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
重新启动系统多次也未见好使,最后发现那三个 set 是多余的,改成下面的就 OK 了!
JAVA_HOME=/usr/java/j2sdk1.4.2_06
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
一会再去弄个IDE装上玩玩......
作者: alonemars 发布时间: 2005-06-08
谢谢!也许过几个月就有用了!呵呵,我们要开Java课程了。
作者: superlj 发布时间: 2005-06-08
用“set"好像是在别的linux版本有用。我也是上了这个当,呵呵。
作者: 神游九州 发布时间: 2005-06-09
今天又安装了 LumaQQ 虽然可以用,但是接收文件有问题,各位遇到过吗?
作者: alonemars 发布时间: 2005-06-09
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28