Hi,

i've written the folowing program to load a '.so'. I'm working in LINUX.

public class loadSO
{
public static void main(String args[])
{
System.loadLibrary("sofile");
}
}

The program give mes the java.lang.UnsatisfiedLink error : no sofile in java.library.path
If i put a System.out.println(System.getProperty("java.library.path")); i get the value as null.

I've set LD_LIBRARY_PATH to /usr/lib. No use.
I tried setting java.library.path System.setProperty("java.library.apth","/usr/lib"); but that doesn't help
I even tried to put the lib in the same folder as the java file. but that doesn't help either.

can anyone point out my mistake to me?