My Linux distribution is
Everest 0.11. Download JDK 6 Beta from
SDN2. 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)