[Java-gnome-developer] errors
Brought to you by:
afcowie
From: Damien C. <da...@co...> - 2003-12-13 23:24:35
|
Hi, I'm new to Java-gnome and I am trying to get up and running. I'm attempting to run the simplest of programs from the Java-gnome tutorial : > // First we import the libraries used by this example > import org.gnu.gnome.App; > import org.gnu.gnome.Program; > import org.gnu.gtk.Gtk; > > public class First { > > public static void main(String[] args) { > // Initialization > Program.initGnomeUI("First", "0.1", args); > > App app = new App("First", "First App"); > app.show(); > > Gtk.main(); > } > } I can compile this easy enough with javac First.java. However when I try to run java -cp . First is get: > [damien@localhost GnomeApp]$ java -cp . First > Exception in thread "main" java.lang.UnsatisfiedLinkError: no GTKJava > in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:834) > at org.gnu.glib.GObject.<clinit>(GObject.java:154) > at First.main(First.java:10) > [damien@localhost GnomeApp]$ Does anyone have any ideas about how to fix this? I have build java-gnome and places all the .jar 's in /usr/java/j2sdk1.4.2_02/jre/lib/ext. Regards -- Damien Covey <www.covey.net.au> |