Getting Java Plugin to work in Firefox 2 under Hardy Heron

I’m running the KDE4 version of Kubuntu Hardy Heron. Yesterday my wife ran across a site where she needed java support. In earlier version I just had used automatix2 to install java, but unfortunetly they aren’t providing a 8.04 version.

I fired up adept and installed the sun-java6-jre and sun-java6-plugins packages, but for some reason adept wouldn’t let me click OK on the license agreement. Back to old command line. After running dpkg –configure -a and apt-get -f install, I was back in business.

Firing up Firefox 2, I went to a java test site and no luck. after looking at about:plugins I discovered the packages don’t actually install the plugins in the right place. So after searching and searching, I didn’t find the exact answer online, but I did get pointed in the right direction. So here’s what I came up with:

sudo apt-get install sun-java6-jre
sudo apt-get install sun-java6-plugin
sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/ /usr/lib/firefox/plugins

There are several firefox directories under /usr/lib/ — firefox, firefox-3.0b5, and firefox-addons. You might have to create a link to the java plugin in one of those directories too depending on your firefox version.

Now I just need to get java running in konquerer….