hoshi's blog

How to correct UnsatisfiedLinkError in linux?

I am trying to call a C program from Java using JNI. But I am getting the following error--
Exception in thread "main" java.lang.UnsatisfiedLinkError: no Sample1 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at Sample1.main(Sample1.java:13)

How do i correct this ?? Please help.