1,下载解压;
2,vi /etc/profile 保存后 source /etc/profile
3,export JAVA_HOME=/java/jdk1.8.0_152
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
1,下载解压;
2,vi /etc/profile 保存后 source /etc/profile
3,export JAVA_HOME=/java/jdk1.8.0_152
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar