Use alternatives utility to update JDK

At the prompt, type sudo update-alternatives –config java The current available java installs would be displayed Selection    Command ———————————————– *  1           /usr/lib/jvm/jre-1.6.0-openjdk/bin/java 2           /usr/lib/jvm/jre-1.4.2-gcj/bin/java To get out of the prompt without make changes, hit Ctrl+C To add a new jdk, I downloaded the jdk-6u-linux-i586.bin from the Oracle Java site. Unzip it chmod 755 jdk-6u27-linux-i586.bin ./jdk-6u27-linux-i586.bin … Read moreUse alternatives utility to update JDK