Java

Here's how to build a simple java virtual machine for the chumby (assumes you have the development tools installed).

Or you can skip to the end and just download a prebuilt binary.

=Building JamVM=

Create a directory to hold the package
mkdir ~jamvm cd jamvm

Download the source code
Download jamvm-1.4.3 into

Unpack the source code
tar xzvf java-1.4.3.tar.gz cd javavm-1.4.3

Configure and build
./configure --build=i386-linux --host=arm-linux --prefix=/usr/arm-linux make

Strip the binary
arm-linux-strip src/jamvm

Install
sudo make install

This will copy the virtual machine to, and the custom class libraries to

Download and unpack GNU classpath
mkdir ~/classpath cd ~/classpath Download classpath-0.91 tar -xzf classpath-0.91.tar.gz cd classpath-0.91

Build classpath
You'll need to have jikes installed (for Kubuntu, ) ./configure --build=i386-linux --host=arm-linux --prefix=/usr/arm-linux --with-jikes --disable-gtk-peer --disable-alsa --without-x --with-jni make sudo make install

Build a "java dongle" for chumby
LD_LIBRARY_PATH=/mnt/usb/lib /mnt/usb/jamvm -mx8M -Xbootclasspath:/mnt/usb/lib/classes.zip:/mnt/usb/lib/glibj.zip $@
 * copy  to the dongle
 * create a directory  on the dongle
 * copy  to the   directory on the dongle
 * copy the contents of to the   directory on the dongle
 * copy the contents of to the   directory on the dongle
 * create the file  on the dongle with the contents:
 * 1) !/bin/sh

Too lazy to do all this?
Just download jamvm_chumby_1.7.tar.gz (23MB) and unpack onto your dongle.

Run programs!
For example, if you have a program  compiled to , you can run it with: Hello World #
 * 1) java Hello