Friday, February 8, 2008

How to install JDK 6 Update 4 in RHEL 4/5

STEP 1:DOWNLOADING FILE
Download Linux RPM in self-extracting file from http://java.sun.com/.

jdk-6u4-linux-i586-rpm.bin - for non 64 bit computer
jdk-6u4-linux-x64-rpm.bin - for 64 bit computer

STEP 2: HOW TO INSTALL
  1. chmod a+x jdk-6u4-linux-xxxx.rpm.bin
  2. ./ jdk jdk-6u4-linux-xxxx.rpm.bin
  3. Remove the existing java installation. you can identify the package by executing 'rpm -qa | grep java' you can remove the package by executing rpm -e 'java-1.x.x.'
  4. rpm jdk-6u4-linux-xxxx.rpm
  5. vi /root/.bash_profile and add this ..

    PATH=$PATH:$HOME/bin:/usr/java/jdk1.6.0_04/bin

After doing the steps reboot your machine.

1 comment:

foo@foo.com said...

Thanks for the post!

The On Demand Global Workforce - oDesk
Google