2007-04-18

Ubuntu_6.10 edgy Configure JDK_1.6

浪花 | SpoonDrift

Download Linux self-extracting file: "jdk-6u1-linux-i586.bin"
save it as /home/shine/download/
cd /home/shine
sudo download/jdk-6u1-linux-i586.bin

you have /home/shine/jdk1.6.0
sudo gedit /etc/profile
Add these:
export JAVA_HOME=/home/shine/jdk1.6.0"
export JRE_HOME=/home/shine/jdk1.6.0/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

reboot the system
java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

that is OK.