I have a problem relative to JNI and Java. Here is the thing : the client wants us to install a certain app on his system. This app uses native libs, but the client does not want to put these libs in his system folder, for reasons I don’t really know or understand, but can’t change.
To circumvent thius problem, I tried to launch the JVM with -Djava.library.path, putting the right dlls in it. But the fact is, I have a UnsatisfiedLinkError when I try to launch my project. From what I can see, the problem is not in the main dll called (because the file obviously exists, I saw it when debugging), I think that must be some of the libs linked by this first dll that are problematic, but I don’t know how to find what dll is missing.
Any idea on how to solve this problem ?
My first port of call (even for JNI debugging) is always Dependency Walker. If nothing else, it will tell you every other DLL that your DLL depends on.
lddis the equivalent for Linux.