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)

Post to Twitter

4 Responses to Installing latest JRE 6 on CentOS 5

  1. Sydney Drevs says:

    Ah! This can be magnificent! Thank you for countering severalsome misconceptions I had noticed about this as of late.

  2. I want to thank you for the effort you have made in publishing this article. I am trusting the same best work from you in the next articles

  3. admin says:

    Thanks Najlepszy 🙂

  4. There are a considerable number of really good tips in this post. I’m signing up to your rss.

Leave a Reply

Your email address will not be published. Required fields are marked *