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/xulrunner-1.9-javaplugin.so xulrunner-1.9-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 50
sudo update-alternatives --config xulrunner-1.9-javaplugin.so
and select the libnpjp2.so option (2)
6 comments:
That did not work for me; I still only have libjavaplugin_oji.so 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.9
lrwxrwxrwx 1 root root 48 2008-11-01 17:17 /etc/alternatives/xulrunner-1.9-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so
lrwxrwxrwx 1 root root 46 2008-10-31 23:41 /etc/alternatives/xulrunner-addons-flashplugin -> /usr/lib/flashplugin-nonfree/libflashplayer.so
lrwxrwxrwx 1 root root 46 2008-10-31 23:41 /etc/alternatives/xulrunner-flashplugin -> /usr/lib/flashplugin-nonfree/libflashplayer.so
lrwxrwxrwx 1 root root 64 2008-11-01 13:36 /etc/alternatives/xulrunner-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so
So it looks like there's a symlink called xulrunner-javaplugin.so also, which points to the old plugin.
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?
Sorry, I'm not sure.
I still have the old plugin (libjavaplugin.so) listed in /usr/lib/firefox/plugins and /usr/lib/mozilla/plugins
I do have a symlink to libnpjp2.so in ~/.mozilla/plugins but I didn't put that there myself.
I see both and libnpjp2.so and "Java(TM) Plug-in 1.6.0_10-b33" listed in about:plugins, but libnpjp2.so 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.
With only xulrunner-1.9-javaplugin.so it works for me ; but, inside the about:plugins page, I always have libjavaplugin_oji.so listed.
When I change the link for xulrunner-1.9-javaplugin.so and for mozilla-javaplugin.so the about:plugins has only libnpjp2.so
Apparently this is now fixed:
https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/291135
1.6 update 11 will have the fix it appears:
http://java.sun.com/javase/6/webnotes/6u11.html
This worked for me: Replace the old plug-in with a symLink
Post a Comment