jdk下载地址
#.bash_profile或者/etc/profileexport JAVA_HOME=/home/software/jdk1.8.0_251 export CLASSPATH=.:${JAVA_HOME}/lib:$CLASSPATH export JAVA_PATH=${JAVA_HOME}/bin export PATH=$PATH:${JAVA_PATH}#加完记得source