export JAVA_HOME=/usr/local/jdk1.8.0_212 #jdk安装目录
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export PATH=$PATH:${JAVA_PATH}
10-20
1534
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-05
125
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-16