Linux配置JDK
在etc/profile文件下添加
export JAVA_HOME=/root/Desktop/jdk1.7.0_79
export CLASSPATH=/root/Desktop/jdk1.7.0_79/lib
export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile
在etc/profile文件下添加
export JAVA_HOME=/root/Desktop/jdk1.7.0_79
export CLASSPATH=/root/Desktop/jdk1.7.0_79/lib
export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile