classpath
[Top][All Lists]
Advanced

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

Re: State of AWT


From: Mark Wielaard
Subject: Re: State of AWT
Date: 03 Feb 2002 00:49:31 +0100

Hi,

On Sat, 2002-02-02 at 23:49, Tom Tromey wrote:
> * Linked all the resulting .o files into lib-gnu-java-awt.so

This might be very basic but how do I go about this step?
I tried to do "gcc -shared -o lib-gnu-java-awt.so *.o"
But the resulting so file does not seem to work. When running the
program I can see (with strace) that the library is being opened but I
still get a java.awt.AWTError: Cannot load AWT toolkit:
java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit

Cheers,

Mark

P.S. These are all the steps I did (after a classpath build --with-jikes
--enable-jni):

/tmp$ mkdir -p gtkpeers/gnu/java
/tmp$ cp -r ~/src/classpath/gnu/java/awt gtkpeers/gnu/java/
/tmp$ cd gtkpeers
/tmp$ for i in gnu/java/awt/peer/gtk/*.java; do gcj -fPIC -g -fjni -c -o
`basename $i .java`.o $i; done
/tmp$ gcc -shared -o lib-gnu-java-awt.so *.o
/tmp$ cd ..
/tmp$ gcj -g --main=TestAWT -o T TestAWT.java /tmp/gtkpeers/*.o
-Wl,-rpath,/usr/local/gcc-3.1/lib
-Wl,-rpath,/home/mark/src/classpath/native/jni/gtk-peer/.libs
-Wl,-rpath,/tmp/gtkpeers
/tmp$ ./T
returned
end
INSET:java.awt.Insets(top=0,bottom=0,left=0,right=0)
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit
[...]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]