Oliver Schmidt, the person who brought Contiki to the Apple II has been busy porting NanoVM to the cc65 toolchain. In Oliver’s own words, it’s a “very minimalistic Java implementation” but this means the Apple II (and other 65xx CPU equipped computers we won’t mention) could run (in a limited fashion) Java applications. You can download a ZIP file containing the tool, and disk image from here.
Oliver’s original announcement posted to comp.sys.apple2 is attached.
Hi, I successfully ported the NanoVM (www.harbaum.org/till/nanovm/) to the cc65 toolchain (www.cc65.org). It’s a very minimalistic Java implementation written in portable C. The binary built with cc65 is only 16kB.
The NanoVM source is available via anonymous CVS access at SourceForge.net (sourceforge.net/projects/nanovm/).
To allow you easy access I created a zip file (www.jantzer-schmidt.de/nanovm-cc65.zip) containing:
1. The tool necessary to convert .class files into an .nvm file to be loaded by the NanoVM in case you want to create your own Java programs.
2. An Apple2 .dsk image file containing the NanoVM binary together with some samples. Type ‘EXEC to run one of the sample Java programs.
3. A C64 .d64 image file containing the NanoVM binary together with some samples. Type ‘RUN:REM to run one of the sample Java programs.
The source of the sample Java programs can be viewed via CVS repository browsing (nanovm.cvs.sourceforge.net/nanovm/nanovm/java/examples/).