update-alternatives : update java path

view story

http://stackoverflow.com – I want to update the java path.After running the command sudo update-alternatives --config java I get following : Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1 auto mode 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1 manual mode * 2 /usr/lib/jvm/jdk1.7.0_25/bin/java 1 manual mode Now I want to update the path for jdk1.7.0_25. what should i do? (HowTos)