BankID and Java plug-in in Firefox on Ubuntu Part 4

I have earlier tried to explain how to get around the Java related issues with BankID and Firefox on Ubuntu (1, 2, and 3). However, it seems that every new Ubuntu release introduce a change or two that forces us to fix something. BankID seems to require Sun‘s JRE. However, this JRE is not part of the standard repository (OpenJDK is). Below I’ll provide a short step-by-step guide to fix the problem in Ubuntu 10.04.

First, add a repository that contains Sun’s JRE. You may go to the Synaptic Package Manager and select “Settings->Repositories->Other software->Add” and paste the following: deb lucid partner, or type the following command into your console window:  sudo add-apt-repository “deb lucid partner”.

Second, you should now be able to install sun-java6-jre, sun-java6-fonts and sun-java6-plugin through either Synaptic or sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts.

Third, make sure that you remove the openjdk. In Synaptic remove openjdk-6-jre-lib and openjdk-6-jre.

Finally, set the sun-java6-jre to be your active jre by typing the following in your console: sudo update-alternatives –config java. Then select the right jre (/usr/lib/jvm/java-6-sun/jre/bin/java). It should most likely be “0”.

i f l
  • RSS
  • Facebook
  • Google+
  • LinkedIn
  • Twitter
  • IMDb
  • Slider