JDK1.6安装(完结)

链接:https://pan.baidu.com/s/1slLrW4l 密码:cdok
1,mkdir java
2,cp /home/soft/jdk-6u45-linux-x64.bin /usr/java/
3,cd /usr/java
4,chmod 755 jdk-6u45-linux-x64.bin
5,./jdk-6u45-linux-x64.bin
6,vi /etc/profile
在文件尾部加入:
JAVA_HOME=/home/files/jdk1.6.0_45
CLASSPATH=.:$JAVA_HOME/lib/tools.jar
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME CLASSPATH PATH
7,之后查看是否安装成功 java  version -a

文章初始地:http://note.youdao.com/noteshare?id=53f78769c7f6d797d86b2f52bdd1a048&sub=8D77C8CF61C0499BB71F26CB2DA76B23

你可能感兴趣的:(Linux笔记)