Removing OpenJDK from linux
[root@localhost
opt]# yum remove java*
check java version
[root@localhost
opt]# java -version
-bash: /usr/bin/java: No such file or
directory
Download latest jre from oracle site
[root@localhost opt]# ls
lost+found
jre-6u45-linux-x64-rpm.bin
[root@localhost
opt]# chmod +x jre-6u45-linux-x64-rpm.bin
[root@localhost opt]#
./jre-6u45-linux-x64-rpm.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by
Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u45-linux-amd64.rpm
Preparing...
########################################### [100%]
1:jre
########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Done.
[root@localhost opt]# ls
jre-6u45-linux-amd64.rpm
jre-6u45-linux-x64-rpm.bin
[root@localhost java]# java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build
1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM
(build 20.45-b01, mixed mode)
[root@localhost java]#
No comments:
Post a Comment