public inbox for
 help / color / mirror / Atom feed
From: Yannick <>
Subject: Gnu Classpath on HP webOS : connexion problem between escher and X server / or loadling escher problem by Gnu classpath
Date: Tue, 10 Jan 2012 23:40:00 -0000	[thread overview]
Message-ID: <jeihuv$v8j$> (raw)
In-Reply-To: <>


I try to create a Java J2SE (Java Desktop) port to HP webOS with Gnu
Claspath and JamVVM.

You can find my working page here :
Building JamVM and GNU Classpath and Jikes (for Java support in webOS)
with scratchbox2

All the compilation options and installation steps for Gnu Classpath 0.98,
escher 0.3.0, javm 1.5.4 are detailed in the web page here :

1) I patch Gnu Classpath 0.98 with the patch here to compile and install
it with
escher 0.3.0.

2) I use this line for compiling Gnu Classpath :
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/media/internal/opt/lib"
CPPFLAGS="-I/usr/local/include" ./configure --prefix=/media/internal/opt
--disable-examples --with-x --disable-gtk-peer --disable-gconf-peer
--disable-plugin --disable-alsa --disable-dssi
--enable-collections --enable-xmlj

3) Makefile for X server binaries on webos :

4) Packagind and script to use X server on webOS :

My problem is that escher, a Java lib that is a Java client, can not
connect to
the X server or that Gnu Classpath can find the escher lib/java classes.
How works escher :

In my webOS process list, I have :

ps -edf
root 1902 1 2 04:38 ? 00:00:38
-retro -noreset :0.0
root 1936 1 0 04:38 ? 00:00:00
-display :0.0 -maximize -xrm *metaSendsEscape: true -u8 -e login -p -f root

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
HelloWorld HelloWorld
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
at java.awt.Toolkit.getDefaultToolkit(
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
(as file `') in gnu.classpath.boot.library.path and
at java.lang.Runtime.loadLibrary(
at java.lang.System.loadLibrary(
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.
And I found no error when I launch it in webos /var/log/messages file.

In escher documentation on the Internet, I found that :
* To test X Awt peer, you must remove "-nolisten TCP" from XServer start
*in console type the command line xhost+
The problem is that I can not change the XServer start script used by webOS.
I have no xhost script or binary on my webOS device.

Here :
I found a patch that I have applied on Gnu Classpath 0.98 to use it with
and in the diff for this patch :
you can find the line
display = new Display(socket, "localhost", displayName.display_no,

Do I need to use login and a password  for connexion with the X server
on webOS
device ?

Can you help me to :
1) to check that all is OK with escher and my Gnu Classpath ?
2) to check conexion problem between Gnu Classpath/escher and the X server ?

My goal is to create the webOS internals's Java Desktop PDK for webOS as
PDK with C/C++.

Thank you for your help.

Best regards


  reply	other threads:[~2012-01-10 23:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30  4:28 PATCH, boehm-gc: silence warning Ben Elliston
2009-11-30 10:07 ` Andrew Haley
2012-01-10 23:40   ` Yannick [this message]
2012-01-10 23:53     ` Gnu Classpath on HP webOS : connexion problem between escher and X server / or loadling escher problem by Gnu classpath Brian Jones
2012-01-11  9:05     ` Mark Wielaard
2012-01-16 20:44       ` Yannick
2012-01-16 20:45       ` Yannick
2012-01-17 19:13         ` Yannick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jeihuv$v8j$' \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).