UnsatisfiedLinkException when running JavaCpp example (LegacyLibrary)

时间秒杀一切 提交于 2019-12-04 16:50:06

The problem was that Visual Studio 2005 and VS 2008 do not automatically link to internal libraries of VC++. The solution is to either bundle a manifest with the required libraries in the executable, as described here, or to simply use Visual Studio 2010 or newer. I used VS 2010 and I can verify that the example now runs as expected. If you happen to try bundling the manifest, please comment for others to confirm that it's a valid fix.

Source: https://groups.google.com/forum/#!topic/javacpp-project/kljspKIxH9M

It seems that java cannot find the .dll file. Try to put it into the same directory from which execute the class file.

BTW, how do you load the library in java?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!