JNI dependent libraries

后端 未结 6 541
小鲜肉
小鲜肉 2020-12-31 03:52

I\'m running a library via JNI (I didn\'t write it), and internally it calls another DLL. I get an error saying \"Can\'t find dependent libraries\" unless I put the path of

6条回答
  •  一个人的身影
    2020-12-31 04:20

    • If you have a DLL name 'MyNativeDLL.dll' then you should use 'MyNativeDLL' in your LoadLibrary call.
    • Use Dependency Walker to check if there are any files required by MyNativeDLL.dll
    • If there are, include them in the same folder as MyNativeDLL.dll - one you get it working try putting the additional required files in System32 folder.

提交回复
热议问题