[root@oel641 ~]# java -version
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (rhel-2.3.4.1.0.1.el6_3-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
[root@oel641 ~]# yum remove java*
Loaded plugins: refresh-packagekit, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 will be erased
--> Processing Dependency: java-gcj-compat for package: 1:ecj-3.4.2-6.el6.x86_64
--> Processing Dependency: java-gcj-compat for package: 1:ecj-3.4.2-6.el6.x86_64
--> Processing Dependency: java-gcj-compat >= 1.0.70 for package: sinjdoc-0.5-9.1.el6.x86_64
--> Processing Dependency: java-gcj-compat >= 1.0.70 for package: sinjdoc-0.5-9.1.el6.x86_64
---> Package java-1.5.0-gcj-devel.x86_64 0:1.5.0.0-29.1.el6 will be erased
---> Package java-1.5.0-gcj-javadoc.x86_64 0:1.5.0.0-29.1.el6 will be erased
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 will be erased
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 will be erased
---> Package java-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 will be erased
---> Package java-1.7.0-openjdk.x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 will be erased
---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 will be erased
---> Package java_cup.x86_64 1:0.10k-5.el6 will be erased
---> Package javassist.noarch 0:3.9.0-6.el6 will be erased
--> Running transaction check
---> Package ecj.x86_64 1:3.4.2-6.el6 will be erased
---> Package sinjdoc.x86_64 0:0.5-9.1.el6 will be erased
--> Processing Dependency: /usr/share/java/eclipse-ecj.jar for package: gcc-java-4.4.7-3.el6.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package gcc-java.x86_64 0:4.4.7-3.el6 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Removing:
java-1.5.0-gcj x86_64 1.5.0.0-29.1.el6 @hclrepo 159 k
java-1.5.0-gcj-devel x86_64 1.5.0.0-29.1.el6 @hclrepo 57 k
java-1.5.0-gcj-javadoc x86_64 1.5.0.0-29.1.el6 @hclrepo 236 M
java-1.6.0-openjdk x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 @hclrepo 81 M
java-1.6.0-openjdk-devel x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 @hclrepo 33 M
java-1.6.0-openjdk-javadoc x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 @hclrepo 232 M
java-1.7.0-openjdk x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 @anaconda-OracleLinuxServer-201302251503.x86_64/6.4 89 M
java-1.7.0-openjdk-devel x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 @hclrepo 36 M
java_cup x86_64 1:0.10k-5.el6 @hclrepo 544 k
javassist noarch 3.9.0-6.el6 @hclrepo 631 k
Removing for dependencies:
ecj x86_64 1:3.4.2-6.el6 @hclrepo 7.3 M
gcc-java x86_64 4.4.7-3.el6 @hclrepo 9.3 M
sinjdoc x86_64 0.5-9.1.el6 @hclrepo 2.3 M
Transaction Summary
========================================================================================================================================================================
Remove 13 Package(s)
Installed size: 726 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : java-1.5.0-gcj-devel-1.5.0.0-29.1.el6.x86_64 1/13
Erasing : java-1.5.0-gcj-javadoc-1.5.0.0-29.1.el6.x86_64 2/13
Erasing : javassist-3.9.0-6.el6.noarch 3/13
Erasing : 1:java-1.6.0-openjdk-javadoc-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 4/13
Erasing : 1:java-1.7.0-openjdk-devel-1.7.0.9-2.3.4.1.0.1.el6_3.x86_64 5/13
Erasing : 1:java-1.7.0-openjdk-1.7.0.9-2.3.4.1.0.1.el6_3.x86_64 6/13
Erasing : gcc-java-4.4.7-3.el6.x86_64 7/13
Erasing : 1:ecj-3.4.2-6.el6.x86_64 8/13
Erasing : 1:java_cup-0.10k-5.el6.x86_64 9/13
Erasing : sinjdoc-0.5-9.1.el6.x86_64 10/13
Erasing : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64 11/13
Erasing : 1:java-1.6.0-openjdk-devel-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 12/13
Erasing : 1:java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 13/13
Verifying : 1:java-1.6.0-openjdk-javadoc-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 1/13
Verifying : javassist-3.9.0-6.el6.noarch 2/13
Verifying : sinjdoc-0.5-9.1.el6.x86_64 3/13
Verifying : 1:java-1.7.0-openjdk-devel-1.7.0.9-2.3.4.1.0.1.el6_3.x86_64 4/13
Verifying : java-1.5.0-gcj-devel-1.5.0.0-29.1.el6.x86_64 5/13
Verifying : gcc-java-4.4.7-3.el6.x86_64 6/13
Verifying : 1:java_cup-0.10k-5.el6.x86_64 7/13
Verifying : java-1.5.0-gcj-javadoc-1.5.0.0-29.1.el6.x86_64 8/13
Verifying : 1:java-1.6.0-openjdk-devel-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 9/13
Verifying : 1:java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 10/13
Verifying : 1:ecj-3.4.2-6.el6.x86_64 11/13
Verifying : 1:java-1.7.0-openjdk-1.7.0.9-2.3.4.1.0.1.el6_3.x86_64 12/13
Verifying : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64 13/13
Removed:
java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 java-1.5.0-gcj-devel.x86_64 0:1.5.0.0-29.1.el6
java-1.5.0-gcj-javadoc.x86_64 0:1.5.0.0-29.1.el6 java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 java-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3
java-1.7.0-openjdk.x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 java-1.7.0-openjdk-devel.x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3
java_cup.x86_64 1:0.10k-5.el6 javassist.noarch 0:3.9.0-6.el6
Dependency Removed:
ecj.x86_64 1:3.4.2-6.el6 gcc-java.x86_64 0:4.4.7-3.el6 sinjdoc.x86_64 0:0.5-9.1.el6
Complete!
[root@oel641 ~]# java -version
-bash: /usr/bin/java: No such file or directory
[root@oel641 ~]#
Install the Oracle JDK:
[root@oel641 repo]# cd /dumps/
[root@oel641 dumps]# ll
total 2146584
-rwxr-xr-x. 1 root root 122639592 Mar 11 2014 jdk-7u51-linux-x64.rpm
-rwxr-xr-x. 1 root root 1068506707 Sep 22 00:13 wls1036_generic.jar
[root@oel641 dumps]# rpm -ivh jdk-7u51-linux-x64.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
jfxrt.jar...
[root@oel641 dumps]#
[root@oel641 dumps]#
[root@oel641 dumps]# javac -version
javac 1.7.0_51
[root@oel641 dumps]# java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (rhel-2.3.4.1.0.1.el6_3-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
[root@oel641 ~]# yum remove java*
Loaded plugins: refresh-packagekit, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 will be erased
--> Processing Dependency: java-gcj-compat for package: 1:ecj-3.4.2-6.el6.x86_64
--> Processing Dependency: java-gcj-compat for package: 1:ecj-3.4.2-6.el6.x86_64
--> Processing Dependency: java-gcj-compat >= 1.0.70 for package: sinjdoc-0.5-9.1.el6.x86_64
--> Processing Dependency: java-gcj-compat >= 1.0.70 for package: sinjdoc-0.5-9.1.el6.x86_64
---> Package java-1.5.0-gcj-devel.x86_64 0:1.5.0.0-29.1.el6 will be erased
---> Package java-1.5.0-gcj-javadoc.x86_64 0:1.5.0.0-29.1.el6 will be erased
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 will be erased
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 will be erased
---> Package java-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 will be erased
---> Package java-1.7.0-openjdk.x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 will be erased
---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 will be erased
---> Package java_cup.x86_64 1:0.10k-5.el6 will be erased
---> Package javassist.noarch 0:3.9.0-6.el6 will be erased
--> Running transaction check
---> Package ecj.x86_64 1:3.4.2-6.el6 will be erased
---> Package sinjdoc.x86_64 0:0.5-9.1.el6 will be erased
--> Processing Dependency: /usr/share/java/eclipse-ecj.jar for package: gcc-java-4.4.7-3.el6.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package gcc-java.x86_64 0:4.4.7-3.el6 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Removing:
java-1.5.0-gcj x86_64 1.5.0.0-29.1.el6 @hclrepo 159 k
java-1.5.0-gcj-devel x86_64 1.5.0.0-29.1.el6 @hclrepo 57 k
java-1.5.0-gcj-javadoc x86_64 1.5.0.0-29.1.el6 @hclrepo 236 M
java-1.6.0-openjdk x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 @hclrepo 81 M
java-1.6.0-openjdk-devel x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 @hclrepo 33 M
java-1.6.0-openjdk-javadoc x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 @hclrepo 232 M
java-1.7.0-openjdk x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 @anaconda-OracleLinuxServer-201302251503.x86_64/6.4 89 M
java-1.7.0-openjdk-devel x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 @hclrepo 36 M
java_cup x86_64 1:0.10k-5.el6 @hclrepo 544 k
javassist noarch 3.9.0-6.el6 @hclrepo 631 k
Removing for dependencies:
ecj x86_64 1:3.4.2-6.el6 @hclrepo 7.3 M
gcc-java x86_64 4.4.7-3.el6 @hclrepo 9.3 M
sinjdoc x86_64 0.5-9.1.el6 @hclrepo 2.3 M
Transaction Summary
========================================================================================================================================================================
Remove 13 Package(s)
Installed size: 726 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : java-1.5.0-gcj-devel-1.5.0.0-29.1.el6.x86_64 1/13
Erasing : java-1.5.0-gcj-javadoc-1.5.0.0-29.1.el6.x86_64 2/13
Erasing : javassist-3.9.0-6.el6.noarch 3/13
Erasing : 1:java-1.6.0-openjdk-javadoc-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 4/13
Erasing : 1:java-1.7.0-openjdk-devel-1.7.0.9-2.3.4.1.0.1.el6_3.x86_64 5/13
Erasing : 1:java-1.7.0-openjdk-1.7.0.9-2.3.4.1.0.1.el6_3.x86_64 6/13
Erasing : gcc-java-4.4.7-3.el6.x86_64 7/13
Erasing : 1:ecj-3.4.2-6.el6.x86_64 8/13
Erasing : 1:java_cup-0.10k-5.el6.x86_64 9/13
Erasing : sinjdoc-0.5-9.1.el6.x86_64 10/13
Erasing : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64 11/13
Erasing : 1:java-1.6.0-openjdk-devel-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 12/13
Erasing : 1:java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 13/13
Verifying : 1:java-1.6.0-openjdk-javadoc-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 1/13
Verifying : javassist-3.9.0-6.el6.noarch 2/13
Verifying : sinjdoc-0.5-9.1.el6.x86_64 3/13
Verifying : 1:java-1.7.0-openjdk-devel-1.7.0.9-2.3.4.1.0.1.el6_3.x86_64 4/13
Verifying : java-1.5.0-gcj-devel-1.5.0.0-29.1.el6.x86_64 5/13
Verifying : gcc-java-4.4.7-3.el6.x86_64 6/13
Verifying : 1:java_cup-0.10k-5.el6.x86_64 7/13
Verifying : java-1.5.0-gcj-javadoc-1.5.0.0-29.1.el6.x86_64 8/13
Verifying : 1:java-1.6.0-openjdk-devel-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 9/13
Verifying : 1:java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.0.1.el6_3.x86_64 10/13
Verifying : 1:ecj-3.4.2-6.el6.x86_64 11/13
Verifying : 1:java-1.7.0-openjdk-1.7.0.9-2.3.4.1.0.1.el6_3.x86_64 12/13
Verifying : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64 13/13
Removed:
java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 java-1.5.0-gcj-devel.x86_64 0:1.5.0.0-29.1.el6
java-1.5.0-gcj-javadoc.x86_64 0:1.5.0.0-29.1.el6 java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3 java-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.0-1.50.1.11.5.0.1.el6_3
java-1.7.0-openjdk.x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3 java-1.7.0-openjdk-devel.x86_64 1:1.7.0.9-2.3.4.1.0.1.el6_3
java_cup.x86_64 1:0.10k-5.el6 javassist.noarch 0:3.9.0-6.el6
Dependency Removed:
ecj.x86_64 1:3.4.2-6.el6 gcc-java.x86_64 0:4.4.7-3.el6 sinjdoc.x86_64 0:0.5-9.1.el6
Complete!
[root@oel641 ~]# java -version
-bash: /usr/bin/java: No such file or directory
[root@oel641 ~]#
Install the Oracle JDK:
[root@oel641 repo]# cd /dumps/
[root@oel641 dumps]# ll
total 2146584
-rwxr-xr-x. 1 root root 122639592 Mar 11 2014 jdk-7u51-linux-x64.rpm
-rwxr-xr-x. 1 root root 1068506707 Sep 22 00:13 wls1036_generic.jar
[root@oel641 dumps]# rpm -ivh jdk-7u51-linux-x64.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
jfxrt.jar...
[root@oel641 dumps]#
[root@oel641 dumps]#
[root@oel641 dumps]# javac -version
javac 1.7.0_51
[root@oel641 dumps]# java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
No comments:
Post a Comment