[Java-gnome-developer] (no subject)
Brought to you by:
afcowie
From: Tiago C. <cog...@li...> - 2003-07-30 21:50:15
|
Hi, First of all congrats for your great job on bringing the java community a way to integrate gnome in theyre apps, i really appreciated, i've been following this project but was waiting for the gnome 2 port. Noq for the not unfortunate part, I've downloaded 0.8 version and tried to run the "First" in your tutorial and it doens't work, it shows this error message: java.lang.UnsatisfiedLinkError: /home/tiago/usr/lib/libGNOMEJava.so: libGTKJava.so: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:832) at org.gnu.gnome.Program.<clinit>(Program.java:100) ..... This is very strange, because i ran java -Djava.library.path=/my/path SomeProgram my/path contains the following files: libGNOMEJava.so.0.8.0 libGladeJava.so.0.8.0 libGTKJava.so libGTKJava.so.0.8.0 libGNOMEJava.so libGladeJava.so I am devoloping a project which contains JNI bindings so i've already ran programs which include binding libraries (infact the program which is calling the "First" example uses a jni library and it loads correctly), i tried puting the libGTKJava.so in my home, in /usr/lib but no results until now. i find it very strange. I tried to run this line only: Gtk.main(); The program loaded successfully so I thought that gnome was not working and GTK might have a chance so i tried running a GTK only example. I created the following code: Window win = new Window(WindowType.TOPLEVEL); win.show(); Gtk.main(); The program segfaulted and crashed the JVM with the following message (only showing part but can send you the real log): An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4CA2D984 Function=gtk_window_new+0x2C Library=/usr/lib/libgtk-x11-2.0.so.0 Current Java thread: at org.gnu.gtk.Window.gtk_window_new(Native Method) at org.gnu.gtk.Window.<init>(Window.java:44) When i ran the example above and before crashing it showed this error output: (process:16576): GLib-GObject-CRITICAL **: gtype.c:1871: initialization assertion failed, use g_type_init() prior to this function (process:16576): GLib-GObject-CRITICAL **: gtype.c:1871: initialization assertion failed, use g_type_init() prior to this function (process:16576): GLib-GObject-CRITICAL **: gtype.c:1871: initialization assertion failed, use g_type_init() prior to this function (process:16576): GLib-GObject-CRITICAL **: file gtype.c: line 1937 (g_type_add_interface_static): assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed (process:16576): GLib-GObject-CRITICAL **: gtype.c:1871: initialization assertion failed, use g_type_init() prior to this function (process:16576): GLib-GObject-CRITICAL **: gtype.c:1871: initialization assertion failed, use g_type_init() prior to this function (process:16576): GLib-GObject-CRITICAL **: gtype.c:1871: initialization assertion failed, use g_type_init() prior to this function (process:16576): GLib-GObject-CRITICAL **: file gobject.c: line 615 (g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed I tried switch Window for a Dialog but unfornatly the same error persisted. After this i downloaded the current (30.07.2003) cvs version but no changes whatsoever. I really need to port my application to java-gnome because i want to put my project on savannah and they are really strict about java software (which can't use swing code). I am using J2SDK 1.4.2 from sun (i've also tested it with J2SDK 1.4.1 from blackdown) and the same problem happened. Thank you for your time, Tiago Cogumbreiro |