Arne Arne - 3 months ago 9x
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.


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");.