The third-party jar I'm using is trying to load my own library using System.loadLibrary. I think what happens is that one of the downloadable libraries depends on another native library. Pointing -Djava.library.path does not work properly in this case. The instructions from the application site put the DLL in the jre / bin directory, but I think this is a really bad idea (especially when trying to deploy to client sites).
So this question really has two parts.
Does it make sense that if the native lib tries to load another native lib, that -Djava.library.path does not work?
Is there a good solution to solve this problem? I assume that I could explicitly call System.loadLibrary on all the DLLs (I'm not even sure if this will work), but I will have to call them in the correct order, otherwise I will have the same problem.
EDIT: I think it makes sense that this happens, and the best solution I have read so far is to use a dependent walker to understand it and then load it in reverse order ... but I'm open to the best deals. ..
thanks jeff
java dll native
Jeff storey
source share