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.