[Java-gnome-developer] Re: Help with shared libraries
Brought to you by:
afcowie
From: Laurent M. <la...@ao...> - 2004-11-22 17:30:20
|
>>>>> "Joel" == Joel Cross <Joe...@ex...> writes: Joel> Hi. I've been having a lot of problems getting java-gnome to Joel> work properly. Joel> I am following the tutorial, and am using 'make' to install Joel> and run my programs, as it seems to be the easiest option. Joel> I have set up the Makefile correctly (I believe), and I can Joel> compile with no problems. However, when I run 'make run' to Joel> try and run the program, I get this error message: Joel> java -Djava.library.path=/usr/lib/jni -classpath Joel> .:/usr/share/java/gtk2.4.jar:/usr/share/java/gnome2.6.jar Joel> First Exception in thread "main" Joel> java.lang.UnsatisfiedLinkError: Joel> /usr/lib/jni/libgnomejava2.6.so.2.6.0: libgtkjava2.4.so: Joel> cannot open shared object file: No such file or directory at Joel> java.lang.ClassLoader$NativeLibrary.load(Native Method) at Joel> java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at Joel> java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at Joel> java.lang.Runtime.loadLibrary0(Runtime.java:822) at Joel> java.lang.System.loadLibrary(System.java:992) at Joel> org.gnu.gnome.Program.<clinit>(Program.java:74) at Joel> First.main(First.java:10) make: *** [run] Error 1 It looks like libgtkjava2.4.so is not found in /usr/lib/jni. Have ou checked that it was installed there ? -- Laurent Martelli la...@ao... Java Aspect Components http://www.aopsys.com/ http://jac.objectweb.org |