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…