I have a dll in the same package as the class trying to load it. However I always get an unsatisfiedlinkexception when I try the loadLibary method. how can i fix this?
The Java system property java.library.path can be used to tell Java where to find native libraries. Alternatively, on UNIX, the LD_LIBRARY_PATH environment variable works. On Winders, having the library on the PATH works.