On Sat, 2010-10-16 at 20:07 +0530, Arani Bhattacharya wrote:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no MyClass in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681) at java.lang.Runtime.loadLibrary0(Runtime.java:840) at java.lang.System.loadLibrary(System.java:1047) at MyClass.<clinit>(MyClass.java:34) Could not find the main class: MyClass. Program will exit.
One possibility is that Java can’t find the shared library. Usually you need to set LD_LIBRARY_PATH to tell Java where the library is. Here is a shell script I use. #! /bin/sh export LD_LIBRARY_PATH=/usr/local/lib java -jar /usr/local/share/dea.jar Here the shared library is in /usr/local/lib. But the shell script could be changed to put it anywhere. I also put all the Java .class files in a jar file, dea.jar. -- JDL -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org