Hi, On Sun, 2002-02-03 at 03:25, Tom Tromey wrote: > Mark> /tmp$ cp -r ~/src/classpath/gnu/java/awt gtkpeers/gnu/java/ > Mark> /tmp$ cd gtkpeers > Mark> /tmp$ for i in gnu/java/awt/peer/gtk/*.java; do gcj -fPIC -g -fjni -c -o > > You also need gnu.java.awt.image. > Without that, I think the .so will have unresolved symbols and won't > link at runtime.
Yes! That was it. Thanks. I can now see a window with buttons on my screen and lots of stacktraces. I am so excited :) For people trying to do this themselves. You will have to include all java files from gnu/java/awt/image and gnu/java/awt/peer/gtk in the shared library, but not any more. $ for i in gnu/java/awt/image/*.java gnu/java/awt/peer/gtk/*.java; do gcj -fPIC -g -fjni -c -o `basename $i .java`.o $i; done $ gcc -shared -o lib-gnu-java-awt.so *.o Cheers, Mark _______________________________________________ Classpath mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/classpath