【jdk】jdk安装与卸载
jdk安装与卸载
jdk
http://blog.csdn.net/fuyuwei2015/article/details/73195936
jdk安装与卸载
查看jdk
java -version
rpm -qa|grep jdk
卸载jdk
rpm -e --nodeps java-1.7.0-openjdk
解压
tar -zxvf jdk-8u152-linux-x64.tar.gz /opt
gedit /etc/profile
export JAVA_HOME=/opt/jdk1.8.0_152
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
使文件生效
source /etc/profile
笔记,万变不离。