View Full Version : GCJ with Glade
indecisive
October 9th, 2007, 04:34 PM
Does anyone know how to use glade xml files in Java and compile it with the GCJ? Any suggestions on popular tutorials?
indecisive
October 10th, 2007, 08:48 PM
After I followed the tutorial at http://people.redhat.com/overholt/nativeeclipse/index.html and installed the eclipse-gcj and glade packages, I received the following errors from my program:
Exception in thread "main" java.lang.UnsatisfiedLinkError: libgtkjni-2.10: libglibjni-0.4.so: cannot open shared object file: No such file or directory
at java.lang.Runtime._load(libgcj.so.70)
at java.lang.Runtime.loadLibrary(libgcj.so.70)
at java.lang.System.loadLibrary(libgcj.so.70)
at org.gnu.gtk.Gtk.<clinit>(gtk2.10.jar.so)
at java.lang.Class.initializeClass(libgcj.so.70)
at org.testing.First.main(First.java:26)
May anyone help?
chackoc
December 1st, 2007, 02:44 PM
http://ubuntuforums.org/archive/index.php/t-504139.html
I don't know if you solved this yet but if not the above link indicates why it happens.
The kludge I ended up using was to symlink everything in /usr/lib/jni to /usr/lib. Once that was done my sample app compiled and ran.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.