配置:
tar zxvf jdk-8u65-linux-x64.gz -C /usr/lib/jvmvim /etc/profileexport JAVA_HOME=/usr/lib/jvm/jdk1.8.0_65 export CLASSPATH=".:$JAVA_HOME/lib:$CLASSPATH" export PATH="$JAVA_HOME/bin:$PATH"sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_65/bin/java 300 sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_65/bin/javac 300 sudo update-alternatives --config java
###################