RE: [Java-gnome-developer] pb at execution
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2002-04-01 12:59:00
|
This error indicates that the java runtime cannot find libGTKJava.so. Please make sure the libraries are in the directory and that users have read permission for this location. If the files are there and the permissions are fine you might try creating an environment variable LD_LIBRARY_PATH and define the search path for shared objects. This is definitely not the best solution but it might help us isolate the problem. I haven't used jdk1.4. Is there a change to the way the new jdk loads native libraries? -Jeff > Hello, > > I have downloaded the last java-gnome sources. The > compilation was good. > I did it with java 1.4 from sun on linux redhat 7.2. > > When I try to execute the examples I got this error: > > [didier@mars test]$ java TestGTK > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > GTKJava in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312) > at java.lang.Runtime.loadLibrary0(Runtime.java:749) > at java.lang.System.loadLibrary(System.java:820) > at gnu.gdk.BaseObject.<clinit>(BaseObject.java:151) > at gnu.gtk.Gtk.init(Gtk.java:91) > at TestGTK.main(TestGTK.java:1713) > > [didier@mars test]$ echo $CLASSPATH > /usr/local/java-gnome-0.7.1/share/java-gnome/gtk.jar:/usr/loca > l/java-gnome-0.7.1/share/java-gnome/gnome.jar:. > > My classpath is set. The /etc/ld.so.conf have the path to my > libraries: > > [didier@mars test]$ cat /etc/ld.so.conf > /usr/lib > /usr/kerberos/lib > /usr/X11R6/lib > /usr/lib/sane > /usr/lib/qt-2.3.0/lib > /usr/local/imwheel-1.0.0pre1/lib > /usr/lib/wine > /usr/local/java-gnome-0.7.1/lib > > > And the ldconfig command has been executed :o) > > Do you see where the pb can be ? > > Thanks for your future help ! > > Regards. > -- > Didier BRETIN > di...@br... > http://www.bretin.net > ICQ: 46032186 > > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |