Scott@JAVA

Java, 一杯浓浓的咖啡伴你到深夜

Setup JDK on Linux

My Linux distribution is Everest 0.1

1. Download JDK 6 Beta from SDN
jdk_download.png

2. Assume you put jdk-6-beta-linux-i586.bin in /usr/local
[root@localhost local]# ./jdk-6-beta-linux-i586.bin
After you agree the license, a folder named "jdk1.6.0" will be unzipped out

3. Set environment variable to let Java function
Create a file named "java.sh" in /etc/profile.d
[root@localhost profile.d]# vi java.sh
The content of the file is as below
JAVA_HOME=/usr/local/jdk1.6.0
PATH
=$PATH:$JAVA_HOME/bin
export JAVA_HOME PATH
Trigger by the following command (or you have to reboot)
[root@localhost profile.d]# source java.sh

4. Check whether you make it or not
[root@localhost ~]# java -version
java version 
"1.6.0-beta"
Java(TM) 
2 Runtime Environment, Standard Edition (build 1.6.0-beta-b59g)
Java HotSpot(TM) Client VM (build 
1.6.0-beta-b59g, mixed mode, sharing)

posted on 2006-06-14 22:01 Scott@JAVA 阅读(372) 评论(0)  编辑  收藏 所属分类: Jave SE 6


只有注册用户登录后才能发表评论。


网站导航: