LoadLibrary recursive dependencies
Hi,
I have three libraries A.dll, B.dll and C.dll, under directory Lib
A is dependent on B and C.
B and C are also dependent on A.
If I put Lib in system path and load A only, using
System.loadLibrary(A), it works fine, windows somehow knows where to find B and C and load them automatically.
However, if I don't put Lib in system path, and providing the relative path in
system.loadLibrary("lib/A"), Windows will throw an error saying can't find B or C.
So, I put
System.loadLibrary("lib/B");
System.loadLibrary("lib/A")
when loading "lib/B", Windows will throw an error saying "can't find A".
Is there a way that I can resolve this delimma due to the recursive dependencies? Or the only way is to put the lib path in the System Path?
Thanks.
Sincerely,
Stan

