[Java-gnome-developer] Error in compiling hello world
Brought to you by:
afcowie
From:
<may...@gm...> - 2006-07-04 14:33:01
|
Hi all, As per the flash demo on java-gnome website, i was trying to compile/run my hello-world example using eclipse. Compile proceeds fine, but when I try to run the project, following error happens Exception in thread "main" java.lang.UnsatisfiedLinkError: no gtkjni-2.8 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at org.gnu.gtk.Gtk.<clinit>(Gtk.java:214) at makulabs.redhat.StatusPester.main(StatusPester.java:16) I get the same error when I try to run from command line using the following command [majain@majain StatusPester]$ java -classpath /usr/share/java/gtk2.8.jar:/usr/share/java/glade2.12.jar:/usr/share/java/glib0.2.jar:$CLASSPATH:. makulabs.redhat.StatusPester Kindly suggest a remedy. I think I'm missing some step. ----- .classfile file from eclipse project -------- <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry exported="true" kind="lib" path="/usr/share/java/glib0.2.jar"/> <classpathentry exported="true" sourcepath="/home/majain/.eclipse/source-jars-libjava-gtk/libgtk-java-src.jar" kind="lib" path="/usr/share/java/gtk2.8.jar"/> <classpathentry exported="true" sourcepath="/home/majain/.eclipse/source-jars-libjava-gtk/libglade-java-src.jar" kind="lib" path="/usr/share/java/glade2.12.jar"/> <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="src" path=""/> <classpathentry kind="output" path=""/> </classpath> ------------------------------------------------------------------ I'm using Fedora Core 5, JDK 1.5, libglade-java-2.12.4-0, glib-java-0.2.5-0, libgtk-java-2.8.5-0 Thanks in advance, makuchaku -- http://makuchaku.info When you speak out with the courage of your convictions, people listen! -- Valmik Thapar, Wildlife Conservationist. |