How to upgrade Java Runtime Environment (JRE) from 1.6.0_06 to 1.6.0_27 ?

Because yesterday Oracle launched a Patch Critical Oracle Java SE October 2011, I realized that my server has:

O/S: Red Hat 5 Enterprise Edition

java –version

java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

According to this page:

I have to upgrade my JRE version using patch for Linux: jre-6u27-linux-i586.bin

I paste Reademe.txt:

Bug Number: 9553040

Product Name: JavaSoft JDK 1.6.0_27-fcs-b07

Platform: Linux-i586

Bug Information:

Instructions for installing this patch:
1. Extract JDK provided in this patch.
2. Upgrade the JDK within the Application Server $OH per the instructions in
   one of the following Notes:

   Note 272808.1 -- 10.1.2
   Note 396096.1 -- 10.1.3
   Note 444462.1 -- 10.1.3 (upgrading to JDK6)

3. Upgrade the JDK within the Database $OH per the instructions in Note 418399.1

Note: This patch download also contains the standalone JRE install.  Follow the Oracle product instructions for using the
      standalone JRE.  If there are questions on using the JDK or JRE with Oracle products, please contact the specific
      product Support team accordingly.

Note: Release Notes for the JDK can be found here:


How do I upgrade JRE?

a.- Should I first uninstall JRE version 1.6.0_06 and then install a fresh jre-6u27-linux-i586.bin? Won't it affect anything at my web server?

b.- Should I just install jre-6u27-linux-i586.bin no matter what?

c.- Should I follow some procedure to upgrade my JRE version?

Who is Participating?
- Get the new jdk binary installer and chmod it +x so that you can run it
- Run it, and install it - it will not overwrite the old one
- Look in /usr/java-xxxx - there should be multiple directories
- There should also be one symlink, java -> java-1.6.0_06 or something like it
- Delete that symlink, create a new one to the newest directory, like:
  ln -s jre-6u27 java

Applications usually use a basic JAVA_HOME variable such as "/usr/java", so they'll follow your symlink into the newly installed tree.

If you see something different, post it back & I'll help you through it - don't worry, it's pretty simple.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.