当前位置: 动力学知识库 > 问答 > 编程问答 >

c - JNI - How to find missing libraries when confronted with "[lib].dll: Can't find dependent libraries"

问题描述:

I've been having some trouble moving a C project compiled and running in unix environment (through JNI) to Windows.

While I have been able to compile the program in windows and add the path leading to it in my runtime environment I've been getting the error after System.loadLibrary():

classes\x32\coremod.dll: Can't find dependent libraries

How can I discover what libraries I need to have in the %PATH% ?

网友答案:

I didn't know this but you can use a program called DEPENDS.exe to discover the dll's which are used by the target.

In my case this highlighted the only dll not already registered, meaning I could simply add it to the %PATH% in order to get my program running.

分享给朋友:
您可能感兴趣的文章:
随机阅读: