http://www.oracle.com/technetwork/indexes/downloads/index.html
一、安装jdk
1.wget 'http://download.oracle.com/otn-pub/java/jdk/6u30-b12/jdk-6u30-linux-i586.bin?AuthParam=1348134712_24a392dafb5a0dafa64d5f018be6b21e'
2.sudo mkdir /usr/local/jvm
3.sudo cp jdk-6u30-linux-i586.bin /usr/local/jvm/
4.cd /usr/local/jvm/
5.sudo chmod 777 jdk-6u30-linux-i586.bin
6.sudo ./jdk-6u30-linux-i586.bin
7.sudo rm jdk-6u30-linux-i586.bin
8.加入环境变量sudo vim /etc/profile
export JAVA_HOME=/usr/local/jvm/jdk1.6.0_30
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
一、安装jdk
1.wget 'http://download.oracle.com/otn-pub/java/jdk/6u30-b12/jdk-6u30-linux-i586.bin?AuthParam=1348134712_24a392dafb5a0dafa64d5f018be6b21e'
2.sudo mkdir /usr/local/jvm
3.sudo cp jdk-6u30-linux-i586.bin /usr/local/jvm/
4.cd /usr/local/jvm/
5.sudo chmod 777 jdk-6u30-linux-i586.bin
6.sudo ./jdk-6u30-linux-i586.bin
7.sudo rm jdk-6u30-linux-i586.bin
8.加入环境变量sudo vim /etc/profile
export JAVA_HOME=/usr/local/jvm/jdk1.6.0_30
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH