首页 > 代码库 > ubuntu安装jdk1.6

ubuntu安装jdk1.6

chmod +x jdk-6u30-linux-x64.bin

./jdk-6u30-linux-x64.bin

配置环境: export JAVA_HOME=~/jdk1.6.0_20   
      export JRE_HOME=~/jdk1.6.0_20/jre   
      export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH   
      export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH