[kaffe] Toolkit load problem?

Andreas Kielkopf a.kielkopf at gleisplanspiel.de
Thu May 31 09:19:47 PDT 2007


Hello

I am serching 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
kompletely. 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 diffrent 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>





More information about the kaffe mailing list