I have never been able to understand neither people who want their error messages in finnish, nor the finnish error messages themselves. I do want my finnish keyboard to work, though. Here's how:
$ sudo dpkg-reconfigure xserver-xfree86
$ sudo dpkg-reconfigure locales
$ sudo vi /etc/environment
What can I say? Java is a many horrendous things. Java bogs us down. Java makes us slaves.
From a less idealistic perspective: far too many things use Java these days. And all of them try to play nice with the Sun's SDK, but not with the free Java's. So non-free it is.
First surf to http://java.sun.com/j2se/downloads.html and choose you poison. Download and save it to /tmp..
# mkdir -p /var/install/java # mv j2sdk-1_4_1_03-linux-i586.bin /var/install/java/ # cd /var/install/java # sh j2sdk-1_4_1_03-linux-i586.bin # chown -R root:staff * # mv j2sdk1.4.1_03/ /usr/local/lib/ # ln -s /usr/local/lib/j2sdk1.4.1_03/ /usr/local/lib/jdk # apt-get install java-common java2-common equivs # mkdir pkg # cp /usr/share/doc/java-common/dummy-packages/*.control pkg/ # cd pkg # rm java-compiler-dummy.control java1* # equivs-build java-virtual-machine-dummy.control # equivs-build java2-runtime-dummy.control # equivs-build java2-compiler-dummy.control # for d in *.deb; do dpkg -A $d; done # dpkg -i java-virtual-machine-dummy_1.0_all.deb # dpkg -i java2-runtime-dummy_1.0_all.deb # dpkg -i java2-compiler-dummy_1.0_all.deb # update-alternatives --verbose \ --install /usr/bin/java java /usr/local/lib/jdk/bin/java 500 \ --slave /usr/share/man/man1/java.1 java.1 /usr/local/lib/jdk/man/man1/java.1 # ln -s /usr/local/lib/jdk/jre/plugin/i386/ns610/libjavaplugin_oji.so \ /usr/lib/mozilla/plugins