OpenJDK 6.0 0 (Cambridge Software Labs) on N900

m (CamSWL OpenJDK on N900 moved to OpenJDK 6.0 0 (Cambridge Software Labs) on N900: Put OpenJDK to the beginning of the WikiName in order to make it easier to be found)
Line 40: Line 40:
  OpenJDK Zero VM (build 14.0-b15, interpreted mode)
  OpenJDK Zero VM (build 14.0-b15, interpreted mode)
   
   
-
 
-
 
-
 
This distribution of OpenJDK was tested successfully with:
This distribution of OpenJDK was tested successfully with:
* [http://www.jedit.org jEdit 4.3.1]
* [http://www.jedit.org jEdit 4.3.1]
* [http://tomcat.apache.org/ Apache Tomcat 6.0.24]
* [http://tomcat.apache.org/ Apache Tomcat 6.0.24]
* [http://ant.apache.org Apache Ant 1.8.0RC1]
* [http://ant.apache.org Apache Ant 1.8.0RC1]
 +
 +
Screenshots:
 +
 +
[[File:Tomcat_in_OpenJDK_on_N900|Tomcat_in_OpenJDK_on_N900]]

Revision as of 21:05, 4 February 2010

(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


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
# cd /opt
# tar zxf OpenJDK-camswl.tar.gz
# chown -R user:users OpenJDK-camswl

Finally, place some symbolic links in order to be able to call java and javac from everywhere

# ln -s /opt/OpenJDK-camswl
# ln -s /opt/OpenJDK-camswl/bin/javac /usr/local/bin/

Try it out!

# su user
$ 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)

This distribution of OpenJDK was tested successfully with:

Screenshots:

File:Tomcat in OpenJDK on N900