It looks as though the problem with mmap() is that the filesystem doesn’t support making mmap()ed files writable which prevents Dalvik as currently implemented from optimizing its Dex file, which prevents it from starting. A workaround for this is to provide Dalvik with an optimized Dex file we prepared earlier. If you do then you get this
November 9, 2008
November 8, 2008
Dalvik Running Standalone (but not quite working) on an N800
A screenshot of Dalvik running in an xterm on an N800
The error (which has scrolled off the top) seems to be a failed call to mmap()
September 18, 2007
Java Personal Profile On The N800
Here are some screenshots showing my port of SUN’s implementation of Java Personal Profile running the Demo application on my Nokia N800.
The Layout demo, not necessarily working correctly.
The Graphics demo, image support is broken
The Widgets demo
The version shown in the screen shots uses SUN’s original GTK based version of AWT. Unfortunately this is based on a pretty old version of GTK and relies on things that have been deprecated or just plain removed. To get it to work at all I had to comment out quite a bit of code. As such it is not really a good basis going forward so I have now started on a new version of AWT using GTK, Pango and Cairo.
This is very much a work in progress and I have not tried running it on hardware, but here is a screenshot of the same Graphics demo as above, but this time on the ’emulator’ and using Cairo to do the rendering but with no image support.