CentOS6.4 64位版本,卸载OpenJDK,安装Oracle JDK

CentOS6.4 64位版本,卸载OpenJDK,安装Oracle JDK

[root@localhost sun]# rpm -qa|grep gcj
libgcj-4.4.7-3.el6.x86_64
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
[root@localhost sun]# yum -y remove java java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64


[root@localhost sun]# java -version
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
[root@localhost sun]# rpm -qa|grep jdk
java-1.7.0-openjdk-1.7.0.9-2.3.4.1.el6_3.x86_64
[root@localhost sun]# yum -y remove java java-1.7.0-openjdk-1.7.0.9-2.3.4.1.el6_3.x86_64




[root@localhost sun]# rpm -ivh jdk-7u45-linux-x64.rpm
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
    rt.jar...
    jsse.jar...
    charsets.jar...
    tools.jar...
    localedata.jar...
    jfxrt.jar...
[root@localhost sun]# java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)



你可能感兴趣的:(CentOS6.4 64位版本,卸载OpenJDK,安装Oracle JDK)