libsndfile

How to fix an UnsatisfiedLinkError (Can't find dependent libraries) in a JNI project

心已入冬 提交于 2019-11-26 00:37:54
问题 I\'m working on a Java project that uses the JNI. The JNI calls a custom library that I\'ve written myself, let\'s say mylib.dll, and that depends on a 3rd party library, libsndfile-1.dll. When I run my program it crashes with java.lang.UnsatisfiedLinkError: C:\\...path...\\mylib.dll: Can\'t find dependent libraries. I\'ve searched this site (and others) and I\'ve tried a number of fixes: I ran dependency walker. DW gave a couple of warnings -- that two libraries required by libsndfile, MPR