Re: [Java-gnome-developer] Compile fine, but doesn't run
Brought to you by:
afcowie
From: Clint A. <ca...@au...> - 2005-04-15 16:48:27
|
Hi there Khiraly. I had the same problem a while back, posted a message to this list and never got any response. So I just figured it out myself (as with most of my questions here). Anyway, Debian Sid uses outdated versions of the following packages, and to get java-gnome to work, you have to install them from source. atk libglade libgnomecanvas libgnomeui Download the latest versions of these packages from your nearest ftp.gnome.org mirror (I believe the path is /sources), and compile and install them. Then compile java-gnome against them, and everything should work. Let me know if you have any problems! Khiraly said: > Hi! > > I have update-ed the libgtk-java (2.6.1) in my debian SID. I can compile > the applications, but Im not able to run it. > I have also downloaded the most recent stable libgtk-java (2.6.2), > exactly the same problem appear. > I have pasted the error log, but I cant fix it. > > Anybody have an idea? > > > Compilation successful > Exception in thread "main" > java.lang.UnsatisfiedLinkError: /usr/lib/libgtkjni-2.6.so: > /usr/lib/libgtkjni-2.6.so: undefined symbol: atk_relation_add_target > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:834) > at org.gnu.glib.GObject.<clinit>(GObject.java:740) > ------------ > > The compiled recent verion: > > lama@khiraly:~/Desktop/down/libgtk-java-2.5.91.1/doc/examples$ java > -classpath :/home/lama/Desktop/down/libgtk-java-2.6.2/gtk2.6.jar > -Djava.library.path="/home/lama/Desktop/down/libgtk-java-2.6.2/libs" > textbuffer/TextBuffer > Exception in thread "main" > java.lang.UnsatisfiedLinkError: > /home/lama/Desktop/down/libgtk-java-2.6.2/libs/libgtkjni-2.6.so: > /home/lama/Desktop/down/libgtk-java-2.6.2/libs/libgtkjni-2.6.so: undefined > symbol: atk_relation_add_target > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511) > at java.lang.Runtime.loadLibrary0(Runtime.java:788) > at java.lang.System.loadLibrary(System.java:834) > at org.gnu.glib.GObject.<clinit>(GObject.java:740) > lama@khiraly:~/Desktop/down/libgtk-java-2.5.91.1/doc/examples$ > > > Best regards, > > -- > Khiraly <khi...@gm...> |