OpenJDK 6.0 0 (Cambridge Software Labs) on N900

(Cambridge Software Labs) are providing a binary distribution of OpenJDK 1.6.0_0 optimized for ARM processors. At first glance it works quite good on N900. However, it is only recomment to experienced users. If you don't know how to use the console or generally what you're doing, you might possibly destroy your filesystem.

Installation instructions, you need to be root and have ssh-access to your N900:

Download the following files
 * j2re and
 * j2sdk

Extract the two files, merge them into one directory and re-package them: $ mkdir OpenJDK-camswl $ cd OpenJDK-camswl $ tar jxf ../j2re.tar.bz2 $ tar jxf ../j2sdk.tar.bz2 $ mv j2re-image/ j2 $ mv j2re-image/ j2sdk-image/jre $ mv j2sdk-image/*. $ rmdir j2sdk-image/ $ cd .. $ tar zcf OpenJDK-camswl.tar.gz OpenJDK-camswl/

Or download the result of these operations from this site Copy the resulting file to your N900 and extract it in /opt $ scp OpenJDK-camswl.tar.gz root@10.0.23.42:/opt $ ssh root@10.0.23.42
 * 1) cd /opt
 * 2) tar zxf OpenJDK-camswl.tar.gz
 * 3) chown -R user:users OpenJDK-camswl

Finally, place some symbolic links in order to be able to call java and javac from everywhere
 * 1) ln -s /opt/OpenJDK-camswl
 * 2) ln -s /opt/OpenJDK-camswl/bin/javac /usr/local/bin/

Try it out! $ java -version java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.5) (6b16~pre4-0ubuntu2) OpenJDK Zero VM (build 14.0-b15, interpreted mode)
 * 1) su user

This distribution of OpenJDK was tested successfully with:
 * jEdit 4.3.1
 * Apache Tomcat 6.0.24
 * Apache Ant 1.8.0RC1