This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj 4.4 and AWT toolkit
- From: "ffileppo" <ffileppo at libero dot it>
- To: "aph" <aph at redhat dot com>
- Cc: "java" <java at gcc dot gnu dot org>
- Date: Thu, 31 Jul 2008 13:50:49 +0200
- Subject: Re: gcj 4.4 and AWT toolkit
> ffileppo wrote:
> > Hi guys,
> >
> > I'm getting the following exception when I try to run AWT/SWING code using gcj 4.4 (which is using classpath 0.97.2). This is happening on both x86 and arm. It works fine using gcc 4.3
> >
> > Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
> > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:607)
> > at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:103)
> > at java.awt.Window.<init>(Window.java:133)
> > at java.awt.Frame.<init>(Frame.java:246)
> > at javax.swing.JFrame.<init>(JFrame.java:123)
> > at MainPanel.main(AWT)
> > Caused by: java.lang.UnsatisfiedLinkError: initIDs
> > at gnu.java.awt.peer.gtk.GtkToolkit.initIDs(GtkToolkit.java:137)
> > at gnu.java.awt.peer.gtk.GtkToolkit.initializeGlobalIDs(GtkToolkit.java:168)
> > at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(GtkToolkit.java:183)
> > at java.lang.Class.initializeClass(natClass.cc:780)
> > at java.lang.Class.forName(Class.h:742)
> > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:583)
> > ...5 more
> >
> > Any thoughts or idea?
>
> You didn't build it? --enable-java-awt=gtk ?
>
> Andrew.
>
Hi Andrew,
Yes, I've built AWT peer
My configure:
Configured with: ../configure --prefix=/media/disk/x86-gcc-inst --disable-libssp --disable-libgomp --disable-libmudflap --enable-libgcj --disable-bootstrap --disable-multilib --disable-sjlj-exceptions --enable-languages=c,c++,java --enable-java-awt=gtk
The problem seems to be that it can't find libgtkpeer.so, which is obviously present.
This is working as intended with gcc 4.3
Can anyone try to reproduce this problem?
Thank you,
Francesco