[Java-gnome-developer] libGTKJava Error
Brought to you by:
afcowie
From: ACJT <ac...@on...> - 2003-11-06 22:30:41
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm new to this java-gnome work, but I am a Java developer and I like how GTK looks and feels better than swing (plus swing performance bites) so I thought I'd try it out. I was looking through previous posts and saw there is an Eclipse plugin, great because I use eclipse. So I sparked it up and built the default app - fine. When I try to run it, of course I get this error: 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 org.you.gnome.simpleapp.GnomeAppMain.main(GnomeAppMain.java:37) So, I set LD_LIBRARY_PATH=/usr/local/lib because that is where libGTKJava.so is. If I run the class from the console, it works fine and my window opens, however if I try to run it from Eclipse, I continually get the error. Is there a way (other than adding - -Djava.library.path=/usr/local/lib to my application runner ) to get this to work from eclipse? I am quite suprised that it didn't work by setting the environment variable in .bash_profile!! Oh, another quicky, is it possible to use Glade to build a GUI, then use java-gnome with the glade code? I haven't gone thoroughly through any example code yet or anything, but thought there might be a document that outlined this perhaps?? Thanks. - -- [A n d r e w] - ------|------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQE/qsz02AKtqeH2FeQRApDuAJwNvTWC3gFl08sF2zxUAY4VpSCGKQCaA6ts mhfrsNJFxOyU6Ss04GoRhAI= =C3q3 -----END PGP SIGNATURE----- |