Installing latest JRE 6 on CentOS 5
On our task to install the latest Java on our CentOS 5 machine we encountered that simply running the RPM from Sun Website is not enough. Here are the steps that we did to get Java installed properly.
1) Get the latest JRE from SUN and download the RPM from HERE.
2) Once done issue chmod a+x on the RPM.
3) Then simply use ./jre (the filename of the RPM) and let it run. This will install the JRE in /usr/java/jre1.6.0_04/bin/java.
You now expect that the latest JRE is installed, right? Alas, it is not so. You are still getting the default Java installation:
3) [root@Server]#java -version
java version 1.4.2_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)