Setup JDK on Linux
My Linux distribution is Everest 0.11. Download JDK 6 Beta from SDN

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 out3. 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 belowJAVA_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)PATH=$PATH:$JAVA_HOME/bin
export?JAVA_HOME?PATH
[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)
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 閱讀(380) 評論(0) 編輯 收藏 所屬分類: Jave SE 6