See the Debian page for information on installing packages, but there are several java compilers and runtimes that you can target.
This vm does not implement very much of the standard, but will have much lower requirements for running java code. You can read more information about the project [here]. Debian may not have a package for this, but you can install it with the following steps:
#install dependencies apt-get update && apt-get install zlib1g-dev -y wget http://sourceforge.net/projects/jamvm/files/jamvm/JamVM%201.5.4/jamvm-1.5.4.tar.gz tar -xf jamvm-1.5.4.tar.gz cd jamvm-1.5.4 # Make sure to set your system clock or this will fail ./configure # Compiling this on a 200 mhz processor takes hours. make make install
Note: Some systems may take a very long time to start when Java is installed if the /etc/hostname and /etc/hosts files do not agree.