BankID and Java plug-in in Firefox on Ubuntu

If you have problems running BankID (Norwegian Internet bank authentication) in Firefox on Ubuntu I might have the solution. I did at least have some problems starting BankID or more correctly starting Java in Firefox on Ubuntu.

I had already installed Sun’s Java implementation following the instructions I wrote about earlier. Then I had to use this trick which I found thanks to Eirik Hoem.

First, go the the plugins folder where you have installed Firefox (using a text shell/command prompt).

cd /usr/lib/firefox-3.0/plugins$

Next, create a symlink to where you have installed the Java plugin.

sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/

Finally, restart your browser and the problem should be solved.