This isn't the problem I have my library path set up properly, I'm running like:
java -Djava.library.path=<path_to_dll> MyClass
if "path_to_dll" is wrong then I get this exception:
The java class could not be loaded. java.lang.UnsatisfiedLinkError: Can't find library Hello2Jni (Hello2Jni.dll) in sun.boot.library.path or java.library.path
sun.boot.library.path=G:\RAD6\eclipse\jre\bin
java.library.path=F:\Workspaces\debugUtils\dll\HelloJNI\Hello2Jni\Debu
If I correct the path, I get this instead:
Exception in
thread "main" java.lang.UnsatisfiedLinkError: helloJni
at HelloJNI.main(HelloJNI.java:14)
Where helloJni is the name of the method in the dll I am trying to call.