centos7 install jdk

setp1: remove default java

[lhs@localhost soft]$ rpm -qa | grep java
java-1.7.0-openjdk-1.7.0.75-2.5.4.2.el7_0.x86_64
python-javapackages-3.4.1-6.el7_0.noarch
tzdata-java-2015a-1.el7.noarch
javapackages-tools-3.4.1-6.el7_0.noarch
java-1.7.0-openjdk-headless-1.7.0.75-2.5.4.2.el7_0.x86_64

[root@localhost soft]# rpm -e --nodeps java-1.7.0-openjdk-1.7.0.75-2.5.4.2.el7_0.x86_64

 

step2:install

 

posted @ 2016-01-30 13:05  yshy  阅读(258)  评论(0编辑  收藏  举报