Getting the new Java 6 update 10 plugin to work with Firefox in Ubuntu

Ubuntu Intrepid, released today, includes the newest version of java, Java 6 update 10 build 33, which features a new java browser plugin with support for features like draggable applets and jnlp-based applets. See these demo applets, for example.

For some reason, however, Ubuntu still has the old version of the java plugin enabled for browsers. So those demo applets won’t work. And how to get it to work is not documented correctly anywhere. To make it work, run these commands in Terminal:

sudo update-alternatives –install /etc/alternatives/ /usr/lib/jvm/java-6-sun/jre/lib/i386/ 50

sudo update-alternatives –config

and select the option (2)

Posted in Uncategorized
6 comments on “Getting the new Java 6 update 10 plugin to work with Firefox in Ubuntu
  1. Anonymous says:

    That did not work for me; I still only have listed in about:plugin. Doing ls -l /etc/alternatives/xulrunner* gives me this:lrwxrwxrwx 1 root root 22 2008-10-31 22:55 /etc/alternatives/xulrunner -> /usr/bin/xulrunner-1.9lrwxrwxrwx 1 root root 48 2008-11-01 17:17 /etc/alternatives/ -> /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.solrwxrwxrwx 1 root root 46 2008-10-31 23:41 /etc/alternatives/xulrunner-addons-flashplugin -> /usr/lib/flashplugin-nonfree/libflashplayer.solrwxrwxrwx 1 root root 46 2008-10-31 23:41 /etc/alternatives/xulrunner-flashplugin -> /usr/lib/flashplugin-nonfree/libflashplayer.solrwxrwxrwx 1 root root 64 2008-11-01 13:36 /etc/alternatives/ -> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.soSo it looks like there's a symlink called also, which points to the old plugin.

  2. Anonymous says:

    So any solution to the problem above Doug? Did you really get only the java 2 plugin listed in about:plugins? If so, do you have a symlink in your ~/.mozilla/plugins directory as well?

  3. Doug Holton says:

    Sorry, I’m not sure.I still have the old plugin ( listed in /usr/lib/firefox/plugins and /usr/lib/mozilla/pluginsI do have a symlink to in ~/.mozilla/plugins but I didn’t put that there myself.I see both and and “Java(TM) Plug-in 1.6.0_10-b33” listed in about:plugins, but is listed first.If you have both listed but libnpjp2 is not listed first, maybe changing the priority would make it work (change 50 to a lower number in the update-alternatives –install line, but run –remove first maybe?)Sorry if my instructions didn’t work for you. I guess maybe I did some other stuff before that (which I thought I undid) that helped get it to work.I’m still kind of surprised that no one at Sun or whereever has put out the correct instructions.

  4. Arsène says:

    With only it works for me ; but, inside the about:plugins page, I always have listed.When I change the link for and for the about:plugins has only

  5. Doug Holton says:

    Apparently this is now fixed: update 11 will have the fix it appears:

  6. Stephan H. Wissel says:

    This worked for me: < HREF="" REL="nofollow">Replace the old plug-in with a symLink<>

Comments are closed.


Enter your email address to follow this blog and receive notifications of new posts by email.

Join 4,341 other followers

%d bloggers like this: