export JAVA_HOME=/usr/local/jdk1.7.0_79 export JAVA_BIN=$JAVA_HOME/bin export PATH=$PATH:$JAVA_BIN export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
参考:
https://www.cnblogs.com/jpfss/p/9713719.html
原文:https://www.cnblogs.com/sea-stream/p/11427395.html