Thread: [Java-gnome-developer] Compile fine, but doesn't run
Brought to you by:
afcowie
From: Khiraly <khi...@gm...> - 2005-04-15 15:11:36
|
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...> |
From: Ismael J. <ml...@ju...> - 2005-04-15 15:35:52
|
On Fri, 2005-04-15 at 17:12 +0200, Khiraly wrote: > 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) > ------------ > [...] What version of atk are you using? You need at least 1.9.0. Regards, Ismael |
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...> |
From: Ismael J. <ml...@ju...> - 2005-04-15 17:04:32
|
On Fri, 2005-04-15 at 11:48 -0500, Clint Allen wrote: > 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). > [...] You sure you never got any response? The following link says otherwise. :) http://article.gmane.org/gmane.comp.gnome.bindings.java/752 Regards, Ismael |
From: Andrew C. <an...@op...> - 2005-04-16 00:18:10
|
On Fri, 2005-15-04 at 11:48 -0500, Clint Allen wrote: > 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 It would be terrific if you could file a bug on Debian's Bug Tracking System requesting they introduce the necessary dependencies - otherwise, things will never improve and others will suffer the same fate. [Of course, if Debian isn't shipping gtk+ 2.6, then, well, you should probably stick with java-gnome 2.8 (ie, libgtk-java 2.4.9 and libglade-java 2.8.3.1 ... I would hope Debian is already shipping those and that they are eligible to end up in their forthcoming stable release] AfC Los Angeles -- Andrew Frederick Cowie Management Consultant Technology strategy, managing change, establishing procedures, and executing successful upgrades to mission critical business infrastructure. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Ismael J. <is...@ju...> - 2005-04-15 15:31:25
|
On Fri, 2005-04-15 at 17:12 +0200, Khiraly wrote: > 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) > ------------ > [...] What version of atk are you using? You need at least 1.9.0. Regards, Ismael |