标签:
1.下载jdk tar
2.解压到/usr/lib/jvm/jdk1.8
3.设置环境变量
vi ~/.bashrc
export JAVA_HOME=/usr/lib/jvm/jdk1.8
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
4.安装验证
java -version
标签:
原文地址:http://www.cnblogs.com/jiwuyf/p/5935513.html