Native library `gtkpeer' not found (as file `libgtkpeer.so') in gnu.classpath.boot.library.path and java.library.path

Hi

during the start of our AWT-application the following exception occurs:

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.(Window.java:133)
at java.awt.Frame.(Frame.java:246)
at javax.swing.JFrame.(JFrame.java:125)
at nl.elidan.handheld.Handheld.(Handheld.java:20)
at nl.elidan.handheld.Handheld.main(Handheld.java:40)
Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not found (as file `libgtkpeer.so') in gnu.classpath.boot.library.path and java.library.path
at java.lang.Runtime.loadLibrary(Runtime.java:763)
at java.lang.System.loadLibrary(System.java:670)
at gnu.java.awt.peer.gtk.GtkToolkit.(GtkToolkit.java:177)
at java.lang.VMClass.forName(Native Method)
at java.lang.Class.forName(Class.java:233)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:583)
...6 more

Indeed libgtkeeper.so cannot be found in any library path.
We are using a panel-card with jamvm 1.5.0.

Where can the lib be downloaded?

Thanks in advance.

Re: Native library `gtkpeer' not found (as file ...

libgtkpeer.so is a jni library to java awt. It is produced while compiling classpath. Are you using the OpenEmbedded framework? If, then
opkg install classpath-gtk should give you the needed files.
If not, you are needing a lot more: X-Server, gtk and java awt. In this case I would suggest you to upgrade to the OpenEmbedded environment.

Syndicate content