4

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?

Android Eve
  • 1,200

2 Answers2

5

Sun-6-java is being phased out by Oracle and is no longer supported. This is why there are no plugins available for your browser anymore.

OpenJDK is the only stack you should be using as sun-java-6 is outdated and deprecated.

http://en.wikipedia.org/wiki/OpenJDK

If you would like to use Proprietary Closed Source features in Java you will need to install the version from java.com (which is also OpenJDK so don't really see any benefit over the Ubuntu Repository version).

OpenJDK is backwards compatible with the old Sun-6-java. What can you not run with OpenJDK?

Oracle Offers Links to Java 7, you have to go out of your way to get Java 6.

The previous edit to my post by "broiyan" is depricated.

0

Actually you can simply add the partner repository in /etc/apt/sources.list :

deb http://archive.canonical.com/ubuntu lucid partner

If you are not on lucid, replace lucid with your distribution (you can get it with lsb_release -c).

If you still have problem with the java plugin, you can do like I did, follow the instructions here :

sudo update-alternatives --install /usr/lib/mozilla/plugins/mozilla-javaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so 1

If you are not on a 64 bits system, replace amd64 by i386.

Anthony O.
  • 2,559