Arne Arne - 1 year ago 123
Java Question

System.LoadLibrary() doesn't find Library

I have a library


and when executing


I get the
. But if I try to load it:


This error happens:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no in java.library.path
at java.lang.ClassLoader.loadLibrary(
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at MainClass.main(

Already tried to use
instead. The library was created from Haskell Code.

Answer Source

On Linux/Unix, I believe it will look for lib<name>.so, so try renaming your library to /home/me/myfolder/, and loading it with System.loadLibrary("mylib");.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download