Visit http://java.sun.com/javase/downloads/widget/jdk6.jsp to download the jdk. While downloading select "jdk-6u20-linux-i586-rpm.bin". Once downloading is finished login using root privileges and run the following: #chmod 777 jdk-6u20-linux-i586-rpm.bin #./ jdk-6u20-linux-i586-rpm.bin This will start extraction of various packages in the file and the start installing it. Accept the license agreement. If you already have open jdk installed on your machine, then to use the new jdk you need to change the links pointed by /usr/bin/java*. Following lines shows it how to do that: (# prompt means root's shell) #ln -fs /usr/java/jdk1.6.0_20/bin/java /usr/bin/java After changing the link you can check the version using $java -version Similarly we need to change the link for javac, javadoc, javah, javap, javaw #ln -fs /usr/java/jdk1.6.0_20/bin/javac /usr/bin/javac #ln -fs /usr/java/jdk1.6.0_20/bin/javadoc /usr/bin/javadoc #ln -fs /usr/java/jdk1.6.0_20/bin/javah /u...