I tried to follow the excellent answer to the question How to correctly remove OpenJDK and JRE and set the system use only and only Sun JDK and JRE?, but there seem to be some side effects:
root@ubuntu10:/usr/local/bin# update-java-alternatives -s java-6-sun
update-alternatives: error: no alternatives for java-rmi.cgi.
update-alternatives: error: no alternatives for mozilla-javaplugin.so.
update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.
update-alternatives: error: no alternatives for mozilla-javaplugin.so.
update-alternatives: error: no alternatives for xulrunner-1.9-javaplugin.so.
Any idea how to correct this?