Gnu Classpath on HP webOS : ClassCastException problem with Gnu classpath and escher

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

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
http://www.webos-internals.org/wiki/Building_JamVM_and_GNU_Classpath_and_Jikes_%28for_Java_support_in_webOS%29_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 :
http://www.webos-internals.org/wiki/Building_JamVM_and_GNU_Classpath_and_Jikes_%28for_Java_support_in_webOS%29_with_scratchbox2

1) I patch Gnu Classpath 0.98 with the patch here
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41057 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-qt-peer
--disable-gtk-peer --disable-gconf-peer --disable-plugin --disable-alsa
--disable-dssi --with-escher=/home/ubuntu/java-project/escher-1.9.90/src
--enable-local-sockets --enable-collections --enable-xmlj
--enable-default-toolkit=gnu.java.awt.peer.x.XToolkit


My problem is that 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/classes.zip:/media/internal/opt/share/classpath/glibj.zip:/media/internal/opt/share/classpath/escher-0.3.jar:/media/internal/opt/share/classpath/collections.jar
HelloWorld -Dawt.toolkit=gnu.java.awt.peer.x.XToolkit HelloWorld

Exception in thread "main" java.lang.ClassCastException: [B
   at gnu.x11.Window.change_property(Window.java:742)
   at gnu.x11.Window.change_property(Window.java:1592)
   at gnu.x11.Window.set_wm_protocol(Window.java:2093)
   at gnu.x11.Window.set_wm_delete_window(Window.java:2082)
   at gnu.java.awt.peer.x.XWindowPeer.<init>(XWindowPeer.java:110)
   at gnu.java.awt.peer.x.XFramePeer.<init>(XFramePeer.java:67)
   at gnu.java.awt.peer.x.XToolkit.createFrame(XToolkit.java:304)
   at java.awt.Frame.addNotify(Frame.java:440)
   at java.awt.Window.show(Window.java:252)
   at java.awt.Component.show(Component.java:1046)
   at java.awt.Component.setVisible(Component.java:977)
   at HelloWorld.<init>(HelloWorld.java:19)
   at HelloWorld.main(HelloWorld.java:5)
root@localhost:/media/internal#

1) The HelloWorld.java source code is available here :
http://www.xinotes.org/notes/note/1105/

2) The HelloWorld.class file, compiled with Jikes 1.22, works fine with
the Java JRE 1.6.0_07 and Windows Vista.

Any idea to fix this problem ?

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

Thank you for your help.

Best regards

Yannick




[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux