Thread: [Java-gnome-developer] bug or missconfigured
Brought to you by:
afcowie
From: Antonio R. <ant...@gm...> - 2007-09-23 16:44:23
|
What does this log mean? I'm on Ubuntu and I cannot if I need some more packages. The code is the simple glade loader from the javadoc. ----------------------------------- r$ ikvm -cp bin:/usr/share/java/gtk.jar:/opt/development/ikvm/lib/mscorlib.jar -Djava.library.path= org.MyPlayer ciao in java Exception in thread "main" java.lang.UnsatisfiedLinkError: org/gnome/gtk/GtkCalendarDisplayOptions.get_ordinal_show_heading()I at org.gnome.glade.XML.<init>(XML.java:49) at org.gnome.glade.Glade.parse(Glade.java:135) at org.MyPlayer.main(MyPlayer.java:16) at java.lang.reflect.Method.Invoke(Method.java) $ java -cp bin:/usr/share/java/gtk.jar:/opt/development/ikvm/lib/mscorlib.jar -Djava.library.path= org.MyPlayer ciao in java Exception in thread "main" java.lang.UnsatisfiedLinkError: org.gnome.gtk.GtkCalendarDisplayOptions.get_ordinal_show_heading()I at org.gnome.gtk.GtkCalendarDisplayOptions.get_ordinal_show_heading(Native Method) at org.gnome.gtk.GtkCalendarDisplayOptions.<clinit>(GtkCalendarDisplayOptions.java:27) at org.gnome.gtk.CalendarDisplayOptions.<clinit>(CalendarDisplayOptions.java:44) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.gnome.glib.Plumbing.registerType(Plumbing.java:92) at org.gnome.glib.Plumbing.<clinit>(Plumbing.java:75) at org.gnome.glade.XML.<init>(XML.java:49) at org.gnome.glade.Glade.parse(Glade.java:150) at org.MyPlayer.main(MyPlayer.java:23) |
From: Andrew C. <an...@op...> - 2007-09-24 02:06:43
|
On Sun, 2007-09-23 at 18:44 +0200, Antonio Riva wrote: > -Djava.library.path=3D Why are you blanking java.library.path? It needs to be $whatever_directory_libgtkjni.so_is_in. The README file available in the sources and at http://java-gnome.sourceforge.net/4.0/README.html is pretty clear about that. AfC Sydney --=20 Andrew Frederick Cowie We are an operations engineering consultancy focusing on strategy, organizational architecture, systems review, and change management procedures: enabling successful use of open source in mission critical enterprises, worldwide. http://www.operationaldynamics.com/ Sydney New York Toronto London |
From: Antonio R. <ant...@gm...> - 2007-09-24 07:59:19
|
oh no, this is a stupid error in my email. In my launch code I use -Djava.library.path=/usr/lib but your email make me check if libgtkjni.so exist; in /usr/lib there is only libgtkjni-4.0.so :/usr/lib$ ls libgtkjni* libgtkjni-4.0.so so I linked it to libgtkjni.so but this seem to not affect my error. On 9/24/07, Andrew Cowie <an...@op...> wrote: > On Sun, 2007-09-23 at 18:44 +0200, Antonio Riva wrote: > > > -Djava.library.path= > > Why are you blanking java.library.path? It needs to be > $whatever_directory_libgtkjni.so_is_in. The README file available in the > sources and at http://java-gnome.sourceforge.net/4.0/README.html is > pretty clear about that. > > AfC > Sydney > |
From: Andrew C. <an...@op...> - 2007-09-24 13:22:11
|
On Mon, 2007-09-24 at 09:59 +0200, Antonio Riva wrote: > but your email make me check if libgtkjni.so exist; in /usr/lib there > is only libgtkjni-4.0.so No no, that's right, and that's what the library loads. Anyway, /usr/lib is on the implicit LD_LIBRARY_PATH, so you shouldn't even have to specify it. I was just concerned that you were setting it to "". > so I linked it to libgtkjni.so=20 Don't do that. ++ Incidentally, the attempt to load Calendar stuff is a glitch, and I filed a bug for it. That's got nothing to do with this problem, though - you're going to link to the native library sooner or later. Your Java VM isn't finding native libraries, and that's the problem that needs resolving. Why don't you come join us in #java-gnome and we'll discuss it further there. AfC Sydney |
From: Thomas S. <th...@ts...> - 2007-10-20 15:39:35
|
Antonio Riva wrote: > > What does this log mean? I'm on Ubuntu and I cannot if I need some > more packages. > > The code is the simple glade loader from the javadoc. > > ----------------------------------- > r$ ikvm -cp > bin:/usr/share/java/gtk.jar:/opt/development/ikvm/lib/mscorlib.jar > -Djava.library.path= org.MyPlayer > ciao in java > Exception in thread "main" java.lang.UnsatisfiedLinkError: > org/gnome/gtk/GtkCalendarDisplayOptions.get_ordinal_show_heading()I > at org.gnome.glade.XML.<init>(XML.java:49) > at org.gnome.glade.Glade.parse(Glade.java:135) > at org.MyPlayer.main(MyPlayer.java:16) > at java.lang.reflect.Method.Invoke(Method.java) > > > $ java -cp > bin:/usr/share/java/gtk.jar:/opt/development/ikvm/lib/mscorlib.jar > -Djava.library.path= org.MyPlayer > ciao in java > Exception in thread "main" java.lang.UnsatisfiedLinkError: > org.gnome.gtk.GtkCalendarDisplayOptions.get_ordinal_show_heading()I > at > org.gnome.gtk.GtkCalendarDisplayOptions.get_ordinal_show_heading(Native > Method) > at > org.gnome.gtk.GtkCalendarDisplayOptions.<clinit>(GtkCalendarDisplayOptions.java:27) > at > org.gnome.gtk.CalendarDisplayOptions.<clinit>(CalendarDisplayOptions.java:44) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:169) > at org.gnome.glib.Plumbing.registerType(Plumbing.java:92) > at org.gnome.glib.Plumbing.<clinit>(Plumbing.java:75) > at org.gnome.glade.XML.<init>(XML.java:49) > at org.gnome.glade.Glade.parse(Glade.java:150) > at org.MyPlayer.main(MyPlayer.java:23) > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > > Hi, can it be that you have forgot to call Gtk.init() before you do some java-gnome specific things? This happened to me a few minutes ago while trying to implement the FileChooserDialog:-P Regards, Thomas. -- View this message in context: http://www.nabble.com/bug-or-missconfigured-tf4505031.html#a13311057 Sent from the Gnome - Java Binding - General mailing list archive at Nabble.com. |
From: Andrew C. <an...@op...> - 2007-10-22 12:51:52
|
On Sat, 2007-10-20 at 08:39 -0700, Thomas Schmitz wrote: > can it be that you have forgot to call Gtk.init() before you do some > java-gnome specific things? This happened to me a few minutes ago I clued in that this was the case myself a few weeks back.=20 I just put in a check in org.gnome.glib.Plumbing's static block to make sure Gtk.init() has been called, and to crash out if it hasn't been. This is a bit thuggish, but it'll do for now until (and unless) we implement this differently [it's fine the way it is; there's more to it than just moving the System.loadLibrary()] Anyway, people who forget to initialize GTK will no longer get the confusing stack trace about GtkCalendar or whatever. [Note that the bug about over-jealous class loading is still extant] AfC Sydney --=20 Andrew Frederick Cowie Managing Director Operational Dynamics Consulting, Pty Ltd We are an operations engineering consultancy focusing on strategy, organizational architecture, systems review, and change management procedures: enabling successful use of open source in mission critical enterprises, worldwide. http://www.operationaldynamics.com/ Sydney New York Toronto London |