[kaffe] Re: Toolkit load problem

Sakur sakur.deagod at gmail.com
Sun Jun 3 19:44:09 PDT 2007


Hi:
     ldd  /your/path/libgtkpeer.so ,you will find the cause . Tis
because the required libraries (See GTKLIBS) were not added to link
flags . Try to link with GTKLIBS ,you will see the awt window.

Br
Sakur


> Message: 1
> Date: Sun, 03 Jun 2007 12:09:17 +0200
> From: Andreas Kielkopf <a.kielkopf at gleisplanspiel.de>
> Subject: [kaffe] Toolkit load problem?
> To: kaffe at kaffe.org
> Message-ID: <1180865357.5709.2.camel at andreas-ubuntu>
> Content-Type: text/plain
>
> Hello
>
> I am searching for a solution to the same problem as Blake Meike
>
> Blake Meike wrote:
> > Sigh, I'm still running into a problem getting Kaffe built so that it
> > will run graphics programs:
> >
> > I'm getting the error:
> > java.awt.AWTError: Cannot load AWT toolkit:
> > gnu.java.awt.peer.gtk.GtkToolkit
> >
> > ... which is quite strange, because both LD_LIBRARY_PATH, and
> > gnu.classpath.boot.library.path point to a directory that contains
> > libgtkpeer.so
> >
> > I've debugged around a bit, and I haven't yet found the name of the
> file
> > that the VM it is actually looking for.
> >
> > Any suggestions appreciated.
> >
> > Thanks
> >   Blake Meike
>
> I have built kaffe from CVS (30.05.2007) and ./configure and make works
> completely. There are no errors on make install.
>
> If i try any Programm without X, it works.
> If i try any Programm with X there is the same error Blake Meike wrote.
>
> We tried it on 3 different machines
> - compiled and testet under Gentoo on an ARM-Board with GCC 3.4.6
> - compiled and testet under Gentoo on an i386-Laptop with GCC 3.4.6
> - compiled and testet under Ubuntu 7.04 on an i386-Desktop with GCC
> 3.4.6
>
> On every Machine there is the same error:
>
> >kaffe  -jar TestAWT2.jar
> java.awt.AWTError: Cannot load AWT toolkit:
> gnu.java.awt.peer.gtk.GtkToolkit
>    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:593)
>    at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:103)
>    at java.awt.Window.<init>(Window.java:134)
>    at java.awt.Frame.<init>(Frame.java:245)
>    at java.awt.Frame.<init>(Frame.java:233)
>    at de.maerklin.tee.cs1.TestAWT2.<init>(TestAWT2.java:79)
>    at de.maerklin.tee.cs1.TestAWT2.main(TestAWT2.java:70)
>    at java.lang.reflect.Method.invoke0(Method.java)
>    at java.lang.reflect.Method.invoke(Method.java:525)
>    at org.kaffe.jar.ExecJarName.main(ExecJarName.java:64)
>    at org.kaffe.jar.ExecJar.main(ExecJar.java:57)
> Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not
> found (as file `libgtkpeer.so' in class loader null) in
> gnu.classpath.boot.library.path and java.library.path
> `[/opt/kaffe-1.1.8_pre/jre/lib/i386/, /opt/kaffe-1.1.8_pre/lib/]'
>    at java.lang.VMClass.forName(VMClass.java)
>    at java.lang.Class.forName(Class.java:235)
>    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:569)
>    ...10 more
>
> With -verbose i get:
>
> Loading
> gnu/java/awt/peer/gtk/GtkToolkit.class(/opt/kaffe-1.1.8_pre/jre/lib/glibj.zip) [compressed]
> Loading java/lang/Throwable
> $StaticData.class(/opt/kaffe-1.1.8_pre/jre/lib/glibj.zip) [compressed]
> Loading
> java/io/InterruptedIOException.class(/opt/kaffe-1.1.8_pre/jre/lib/glibj.zip) [compressed]
> java.awt.AWTError: Cannot load AWT toolkit:
> gnu.java.awt.peer.gtk.GtkToolkit
>    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:593)
>    at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:103)
>    at java.awt.Window.<init>(Window.java:134)
>    at java.awt.Frame.<init>(Frame.java:245)
>    at java.awt.Frame.<init>(Frame.java:233)
>    at de.maerklin.tee.cs1.TestAWT2.<init>(TestAWT2.java:79)
>    at de.maerklin.tee.cs1.TestAWT2.main(TestAWT2.java:70)
>    at java.lang.reflect.Method.invoke0(Method.java)
>    at java.lang.reflect.Method.invoke(Method.java:525)
>    at org.kaffe.jar.ExecJarName.main(ExecJarName.java:64)
>    at org.kaffe.jar.ExecJar.main(ExecJar.java:57)
> Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not
> found (as file `libgtkpeer.so' in class loader null) in
> gnu.classpath.boot.library.path and java.library.path
> `[/opt/kaffe-1.1.8_pre/jre/lib/i386/, /opt/kaffe-1.1.8_pre/lib/]'
>    at java.lang.VMClass.forName(VMClass.java)
>    at java.lang.Class.forName(Class.java:235)
>    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:569)
>    ...10 more
> Loading
> java/lang/InterruptedException.class(/opt/kaffe-1.1.8_pre/jre/lib/glibj.zip) [compressed]
>
> I searched on the Mailinglist for a Tip to solve this, but found none.
>
> I hope we made a silly error, but please can anyone tell us what to do ?
>
> Thanks
>
> --
> Andreas Kielkopf <a.kielkopf at gleisplanspiel.de>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>
>
> End of kaffe Digest, Vol 37, Issue 2
> ************************************
>




More information about the kaffe mailing list