centos7安装JDK8
1.上传jdk8到/usr/local/java,并解压
2.ln -s /usr/local/java/jdk1.8.0_11 /usr/local/java/jdk
3.vi /etc/profile
最后添加
export JAVA_HOME=/usr/local/java/jdk
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
4.source /etc/profile
网友评论