SableVM on iPAQ

Rene Wagner <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
Hi,

gadek asked me to post a little success story...

$ uname -a
Linux h3800 2.4.19-rmk6-pxa1-hh36 #1 Thu Aug 5 16:25:27 CEST 2004 armv4l
unknown
$ java HelloIPAQ
Hello iPAQ!
$ java --version
SableVM version 1.1.6
- compile date and time: 2004-08-11 21:51:45 UTC
- gcc version: 3.4.1
- signal based exception detection
- copying garbage collection
- bidirectional object layout
- direct-threaded interpreter

Over the past few days I've added SableVM (and libffi, jikes) to
OpenEmbedded (http://openembedded.org/).

OpenEmbedded is the build system that will be used to build the next
generation familiar (http://familiar.handhelds.org/) and OpenZaurus
(http://openzaurus.org/) distributions.

Unfortunately there are also a few issues left:

Handheld devices store permanent data on flash memory which is
traditionally rather limited in size. Even with the more recent iPAQs
there are only about 14MB of space left for applications.

Thus, it would be very nice if "Bug 2" could be resolved:
http://sablevm.org/bugs/2

In the meantime I'll probably write a workaround script that extracts
the java classes to a ramdisk.

With GPE (http://gpe.handhelds.org/) there are also X and GTK available.
Of course I tried some Swing examples :)

Unfortunately only with limited success. SableVM doesn't crash or
anything, but the window it displays remains empty. On the console there
are the following error messages:

---snip---
$ java SimpleJLabelExample

(:872): Gdk-WARNING **: Using Xft rendering requires the GC argument to have a
specified colormap. If the GC was created for a drawable
with a colormap, the colormap will be set on the GC
automatically. Otherwise, a colormap must be set on it withgdk_gc_set_colormap

(:872): Gdk-WARNING **: Using Xft rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
---snip---

(That example works fine on my laptop - [Debian unstable, SableVM 1.1.5])

Maybe someone can make a clue out of that and provide some hints.

Rene

PS: gadek also asked me to run a few tests.. results here:
http://www.informatik.uni-bremen.de/~rwagner/oe/sablevm_test.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.