Gnu Classpath on HP webOS : connexion problem between escher and X server / or loadling escher problem by Gnu classpath

Mark Wielaard
Wed Jan 11 09:05:00 GMT 2012

Hi Yannick,

The classpath list is probably the best to discuss this problem (CCed).

On Wed, 2012-01-11 at 00:30 +0100, Yannick wrote:
> When I launch the JRE and with Xterm started, I have the following error
> message :
> root@Palm Pre:/media/internal# /media/internal/opt/bin/jamvm HelloWorld
> -bootclasspath
> /media/internal/opt/share/jamvm/
> opt/share/classpath/escher-0.3.jar:/media/internal/opt/share/classpath/collections.jar
> HelloWorld HelloWorld
> Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
> at java.awt.Toolkit.getDefaultToolkit(
> at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
> at java.awt.Window.(
> at java.awt.Frame.(
> at java.awt.Frame.(
> at HelloWorld.(
> at HelloWorld.main(
> Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not
> found
> (as file `') in gnu.classpath.boot.library.path and
> java.library.path
> at java.lang.Runtime.loadLibrary(
> at java.lang.System.loadLibrary(
> at
> at java.lang.VMClass.forName(Native Method)
> at java.lang.Class.forName(
> at java.awt.Toolkit.getDefaultToolkit(
> ...6 more
> But here Gnu Classpath is not compiled to use (c/C++ lib
> with Qt
> or GTK) but escher java lib.


        In this release you have to enable the X peers at runtime by
        setting the system property by passing
        `' to the java command
        when running an application.
Running configure
should also work. That should probably be the default when configuring
with --disable-gtk-peer and --with-escher.

Hope that helps,


More information about the Java mailing list