[please don't hijack threads. start a new thread.]

SHAIK Mansoor writes:
> Getting the following error.

> Exception in thread "main" java.lang.UnsatisfiedLinkError: 
> /u/users/m1k/scm/m1kSOA204/JNI/HelloWorld/libHelloWorld.so: 
> /u/users/m1k/scm/m1kSOA204/JNI/HelloWorld
>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
>         at java.lang.System.loadLibrary(System.java:1028)
>         at HelloWorld.<clinit>(HelloWorld.java:8)
> Could not find the main class: HelloWorld.  Program will exit.

Export LD_LIBRARY_PATH environment variable[1] before executing java process.

References:
[1]  http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

HTH
-- 
They who can give up essential liberty to obtain a little temporary safety,
deserve neither liberty nor safety.
  -- Benjamin Franklin, Memoirs of the life and writings of Benjamin Franklin

_______________________________________________
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to