[Java-gnome-developer] JDK1.5.0: undefined symbol: JNU_GetEnv
Brought to you by:
afcowie
From: Stefan K. <Ste...@gm...> - 2006-01-14 22:40:16
|
Hi all, I fail miserably to run the Gtk HelloWorld program with a Sun JDK (1.5.0 or 1.6.0-beta) and thus have to bother you with my question. Here's the output: java -Djava.library.path=/usr/local/lib -classpath ${JG_JARS}gtk2.8.jar:${JG_JARS}glib0.2.jar:bin HelloWorld Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/lib/libgtkjni-2.8.so: /usr/local/lib/libgtkjni-2.8.so: undefined symbol: JNU_GetEnv at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:821) at java.lang.System.loadLibrary(System.java:1030) at org.gnu.gtk.Gtk.<clinit>(Gtk.java:180) at HelloWorld.main(HelloWorld.java:55) (I'm getting this exception with libgtk-java-2.8.1 and glib-java-0.2.2) It runs fine with gij on my SuSE 10 machine - but I'd like to run it with Sun's JDKs too. Who can help me? Yours, Stefan |