UnsatisfiedLinkError

I have implemented native method in Win32 A.DLL. This DLL uses another B.DLL. If the B.DLL is missing then

I get "java.lang.UnsatisfiedLinkError: C:\dlls\A.dll: Can't find dependent libraries". This is right. Problem is that our system is very complex and I don't know which dependent library is missing (it is the B.DLL in this case). Could I get more info from JVM?

[396 byte] By [pbroz] at [2007-9-26 3:55:04]
# 1
I don't know if it will help you... but...There are a tool (from micro$oft) called "depends", this tool comes with VisualC++ or Visual Studio... if you could use that... try it... because this tool show all depends...../jcf
jusbe at 2007-6-29 12:44:49 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
I forgot one thing...If you can't use the "depends", take a look on Java Native Interface Specification on java site and see the functions that u can use to show a internal methods....jcf
jusbe at 2007-6-29 12:44:49 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Please, can you name some of these functions?Even beter than depends from Visual C++ is too fromwww.sysinternals.com which detects even dynamically loaded DLLs.
pbroz at 2007-6-29 12:44:49 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
Take a Look : http://java.sun.com/products/jdk/1.2/docs/guide/jni/Good Luck !!!
jusbe at 2007-6-29 12:44:49 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5
It most likely be one of the following mistakes:1 You forgot to put you dll into the PATH2 type error on "loadLibrary". (should be in the static section)3 function names are not consistent.4 Package path need to be precise.Good luck!
smqzhang at 2007-6-29 12:44:49 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 6
Thanks,but initial question was:How can I force JVM to tell me:"Exactly B.DLL is missing!"instead of"Dependent libraries not found." - I don't know which.It will not help me much in bugtracking.Any idea?
pbroz at 2007-6-29 12:44:49 > top of Java-index,Java HotSpot Virtual Machine,Specifications...