java - Win64 - JNI: UnsatisfiedLinkError: Can't find dependent libraries -


i have own jni dll depends on few other dlls (zero mq precise). have compiled these dependencies on windows 7(64bit) via visual studio. defined 64-bit dlls.

on developer machine works fine. if move dlls machine(also windows 7 64 bit) error mentioned in title.

i moved minigw-64 installation machine compile dll there. this, ofcoures, need other dlls well, , can compile sucessfully. if start jar file (where jni-lib loaded) unsatisfiedlinkerror.

i did same on both pcs. path or java.library.path same on both.

my start script looks this:

set path=c:\path\to\my\dependencies;.;%path% java -jar myjar.jar pause 

any ideas problem be?

check following.

1) make sure there no typo in library name .

incase of linux should thing like

system.load.library("mylib");

then lib name should libmylib.so.

2) need add location of java library path

-djava.library.path="path dll location".

3) make sure have compiled library in version of jre using i.e ( if use 64bit jre need compile dll in 64 bit). or can use -d32 or -d64 flags if available in jre.

4) make sure dll not in debug mode need microsoft debug runtime libraries in machine if so(i have done quite few times). if there problem dependencies path walker should identify dependency problem.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -