标签:
1、搜索安装的jdk:
rpm -qa|grep jdk
结果如下:
java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 java-1.6.0-openjdk-1.6.0.0-1.66.1.13.0.el6.x86_64
2、删除:
rpm -e --nodeps java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.66.1.13.0.el6.x86_64
3、查看:
java -version
结果:
bash: /usr/bin/java: No such file or directory
标签:
原文地址:http://www.cnblogs.com/zengdan-develpoer/p/4513728.html