Hi Stefan,
I believe the problem is that your libgtk-java and glib-java versions
are not in sync. If you plan to use libgtk-java-2.8.1, please use
glib-java-0.2.1, and if you're going to use glib-java-0.2.2, please use
libgtk-java-2.8.2.
See how it goes and get back to us all. :) You are also welcome to
chat with some of us on IRC in the #java-gnome channel at irc.gimp.net.
Regards,
Rem
On Sat, 14 Jan 2006 23:40:01 +0100
Stefan Krause <Ste...@gm...> wrote:
> 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
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log files for problems? Stop! Download the new AJAX search engine
> that makes searching your log files as easy as surfing the web.
> DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________ java-gnome-developer
> mailing list jav...@li...
> https://lists.sourceforge.net/lists/listinfo/java-gnome-developer
|