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

I have previously written about getting BankID to work on a Linux/Ubuntu computer. Even though BankID worked on a fresh install of Ubuntu 11.04 with OpenJDK, it seems to work best with Sun’s Java implementation. This post will guide you through installing Sun’s JRE and removing OpenJDK.

First install Sun’s java implementation. I installed it from the 10.04 repository (lucid) using the following commands (or Synaptic Package Manager):

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

However, I am pretty sure using the 11.04 (natty) respository would work as well (Synaptic should already have an entry for partner software):

sudo add-apt-repository deb-src http://archive.canonical.com/ubuntu natty partner

Then remove all the packages concerning OpenJDK (my computers had six different packages). It is probably easier to find and remove the packages by using Synaptic.

Finally, select the java version to use by typing in the following command (pick the one saying “sun jre” and “auto”):

sudo update-alternatives --config java

I have tested the above on two different computers and it is working. If you have problems, leave me a comment and I’ll see if I can help.

Join the Conversation

11 Comments

  1. Thanks for updating this! BankID works if you install Sun JRE as you suggest, but it created all sorts of problems with a fresh install of 11.04.

  2. On one of the computers I tested it yesterday, I did a new install quite recently with 11.04. BankID worked right out of the box with OpenJDK. However, after installing Sun’s JRE and removing OpenJDK it worked a lot faster.

    What kinds of problems do you have? Are the problems related to BankID, or other applications that use Java?

  3. Thank you!

    BankID worked OK when logging in, but I was unable to type anything at all when trying to digitally sign a transfer. This did the trick and should be bookmarked by all techsupport working in Norwegian banks. Last command should probably be –config, or?

  4. Nevermind, doubledash becomes one long dash when typing in here.

  5. Glad it helped you Kristian. I found that the banks did little to provide Linux support and because of that I wanted to share 🙂

    I should of course be two dashes and I have updated the text. However, I suspect copy+paste and HTML have turned them into one long dash.

  6. I found that BankID works with OpenJDK on the latest Ubuntu. But something is wrong with browser plugin (icedtea). Like Kristian described – it works first time, but then input stops working. I’m solving it by using “System Monitor” application to kill “java” process. Then applet works again. Not ideal solution, but it works.

  7. Thanks for your feedback OlDer. Since I have had problems with other JREs, I always install Sun’s JRE. However, if you are able to get it working with OpenJDK, that is great. Thanks for the tip about killing the process, it might be useful to others.

  8. Hi! I have a problem with BankId and java. i installed IcedTea-Web Plugin (using IcedTea-Web 1.1.1 (1.1.1-0ubuntu1~11.04.2)), but when i type in the code from my calculator in BankId, firefox crashes. Do you know anything about this?

Leave a comment

Leave a Reply