1. Download jre-6u18-linux-x64.bin (example) from Java.Sun.com to /usr/java 2. sh jre-6u18-linux-x64.bin 3.alternatives --install /usr/bin/java java /usr/java/jre1.6.0_18/bin/java 2 alternatives --config java There are 3 programs which provide 'java'.
Enter to keep the current selection[+], or type selection number: 3 4. Check Instalation [root@localhost java]# java -version java version "1.6.0_18" Java(TM) SE Runtime Environment (build 1.6.0_18-b07) Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)