I didn\'t realize this until I was scanning the recent slashdot comments, but there\'s a new Java on the SL-6000. It\'s the cvm, which runs J2ME, instead of the Jeode runtime which came with the older Zaurii. J2ME is a much newer standard of Java than the PersonalJava standard which Jeode supports.
But what\'s ever cooler is that I\'m able to compile Java programs right on my Z!!! And using the standard Sun JDK tools. Here\'s how I did it:
First of all, download and install JDK 1.3 on your desktop if you don\'t have it. (1.4 and later won\'t work). Now, you just need to copy 2 files onto your Z. You need JAVA_HOME/jre/lib/rt.jar and JAVA_HOME/lib/tools.jar. These two files together about 18megs so best to put them on a card. I\'ll assume they both live in /mnt/card. It\'s probably possible to remove a lot of unneeded classes from these jar files to trim them down but I haven\'t tried that yet.
Now, just create the following shell script and call it javac:
#!/bin/sh
INSTALLDIR=/home/QtPalmtop
export INSTALLDIR
PATH=$PATH:/home/QtPalmtop/j2me/bin/
cvm -cp /mnt/card/tools.jar com.sun.tools.javac.Main -bootclasspath /usr/QtPalmtop.rom/j2me/lib/personal.jar:/mnt/card/rt.jar $*
That\'s it, you\'re ready to compile
For convenience, I defined an alias for java, just so I don\'t have to keep remembering to set my PATH and type cvm:
alias java=/home/QtPalmtop/j2me/bin/cvm
I just compiled and tested a Hello World program. Now I\'m curious to see if I can do anything more complicated. From the look of things, a swap partition might be useful...