[kaffe] java.awt.AWTError:

Dalibor Topic robilad at kaffe.org
Wed Apr 20 12:53:00 PDT 2005


huony wrote:
> hi everyone can anyone help me out
> 

Hi houny,

> 
>    ./configure --disable-debug --disable-sound --with-kaffe-qt-awt --with-engine=intrp --without-classpath-gtk-awt --host=powerpc-linux --enable-pure-java-math --prefix=/opt/hardhat/devkit/ppc/405/target/usr/local/kaffe
> 
> 
> results in a runtime that still wants the gtk awt:
> 
> java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
>    at java.awt.Toolkit.getDefaultToolkit (Toolkit.java:535)
>    at java.awt.Font.tk (Font.java:277)
>    at java.awt.Font.getPeerFromToolkit (Font.java:289)
>    at java.awt.Font.<init> (Font.java:347)
>    at TextCanvas.setFont (TextCanvas.java)
>    at TextEdit.<init> (TextEdit.java)
>    at TextEdit.main (TextEdit.java)
>    at java.lang.reflect.Method.invoke0 (Method.java)
>    at java.lang.reflect.Method.invoke (Method.java:255)
>    at kaffe.jar.ExecJarName.main (ExecJarName.java:67)
>    at kaffe.jar.ExecJar.main (ExecJar.java:75)
> Caused by: java.lang.UnsatisfiedLinkError: Could not find library 'gtkpeer'
> Adding its directory to LD_LIBRARY_PATH may help.
>    at java.lang.Class.forName (Class.java)
>    at java.lang.Class.forName (Class.java:44)
>    at java.awt.Toolkit.getDefaultToolkit (Toolkit.java:521)
>    ...10 more

That's because you want to run an AWT implementation. If you don't wnat
to use gtk, you may want to chose a different AWT backend (though the
peerless AWTs do not support Swing, for example). See FAQ/FAQ.awt for
details.

cheers,
dalibor topic




More information about the kaffe mailing list