Fix Java plugin for Firefox in Ubuntu Lucid Lynx
Saturday, August 7, 2010 11:57:11 PM
http://ubuntuforums.org/showpost.php?p=9008918&postcount=32
Re: Feedback: It's too hard to install Java so it works in firefox !
The one java app I have to use does not work correctly with openjdk and icedtea, so I really must use sun's runtime and plugin. I was surprised to see that neither this thread nor any of the others I could find said anything about getting sun's plugin to work on lucid (or with firefox-3.6 in general). Maybe my search string wasn't good enough. Anyway, here's how to do it.
First, open 'Software Sources', click the 'Other Software' tab, and verify that the lucid partner repo is enabled. If it doesn't show up on the list, add it: deb http://archive.canonical.com/ubuntu lucid partner
Next, install sun-java6-plugin and uninstall both icedtea6-plugin and openjdk-6-jre.
And finally, due to this bug, run the following command:
Code:
sudo update-alternatives --install /usr/lib/mozilla/plugins/mozilla-javaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 1
This is the only step that is specific to firefox-3.6 and lucid.
Restart firefox and check about:plugins to verify that the correct plugin version is loaded.
If icedtea and openjdk work for the apps you use, then I recommend that you continue to use them rather than switching to the sun versions. However, if you use apps that do not work correct with ubuntu's default java installation, the above should work.
Last edited by Brandon Williams; April 6th, 2010 at 01:41 PM.. Reason: fix update-alternatives command line for forward compatibility
Re: Feedback: It's too hard to install Java so it works in firefox !
The one java app I have to use does not work correctly with openjdk and icedtea, so I really must use sun's runtime and plugin. I was surprised to see that neither this thread nor any of the others I could find said anything about getting sun's plugin to work on lucid (or with firefox-3.6 in general). Maybe my search string wasn't good enough. Anyway, here's how to do it.
First, open 'Software Sources', click the 'Other Software' tab, and verify that the lucid partner repo is enabled. If it doesn't show up on the list, add it: deb http://archive.canonical.com/ubuntu lucid partner
Next, install sun-java6-plugin and uninstall both icedtea6-plugin and openjdk-6-jre.
And finally, due to this bug, run the following command:
Code:
sudo update-alternatives --install /usr/lib/mozilla/plugins/mozilla-javaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 1
This is the only step that is specific to firefox-3.6 and lucid.
Restart firefox and check about:plugins to verify that the correct plugin version is loaded.
If icedtea and openjdk work for the apps you use, then I recommend that you continue to use them rather than switching to the sun versions. However, if you use apps that do not work correct with ubuntu's default java installation, the above should work.
Last edited by Brandon Williams; April 6th, 2010 at 01:41 PM.. Reason: fix update-alternatives command line for forward compatibility






