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 http://archive.canonical.com/ lucid partner, or type the following command into your console window:  sudo add-apt-repository “deb http://archive.canonical.com/ 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”.

Join the Conversation

5 Comments

  1. You are absolutely right! Thanks for the feedback.

    What you could do I guess is to add the Lucid repository and install Sun’s JRE from that repo. Personally, I have not tested Ubuntu 10.10 (I am lazy and I normally upgrade after release). The following code should hopefully solve this problem:

    sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
    sudo apt-get update
    sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

    You may obviously solve it through Synaptic as well by adding the repository there as a source.

    I will most likely post an update after I have tried 10.10.

  2. Just tried it (and got it working) with Ubuntu 10.10 and Personal-4.17.0.11 (latest currently, officially only supports 10.04) . Did a re-install of firefox and SUN jre packages and a reboot as well to get it all to play.

Leave a comment

Leave a Reply