Ubuntu, Firefox 2, and Sun Java Plugin

Setup: Ubuntu Hardy Heron 8.04, Firefox 2

I installed the Sun Java 6 plugin via the Firefox plugin finder GUI, but applets still didn’t work. Viewing about:plugins did not list Java.

I tried a good swift kick to the package manager:

sudo aptitude install sun-java6-jre sun-java6-plugin sun-java6-fonts

Still no joy. The trick turned out to be adding a symlink in /usr/lib/firefox/plugins:

sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins

Some pages that helped:
http://ubuntuforums.org/archive/index.php/t-578049.html
http://www.egir.dk/phpBB3/viewtopic.php?f=17&t=3758

And a related (?) bug:
https://bugs.launchpad.net/ubuntu/+source/classpath/+bug/239017