debian:/root# update-alternatives --config java There are 3 alternatives which provide `java'. Selection Alternative ----------------------------------------------- 1 /usr/bin/gij-4.3*+ 2 /usr/lib/jvm/java-gcj/jre/bin/java 3 /usr/lib/jvm/java-6-sun/jre/bin/java Press enter to keep the default[*], or type selection number: 3 Using '/usr/lib/jvm/java-6-sun/jre/bin/java' to provide 'java'.