Exception in thread "main" java.lang.UnsatisfiedLinkError: C:
eyodllopencv451x64opencv_java451.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at reyo.sdk.utils.chrome.OcrTest.getDistance(OcrTest.java:140)
at reyo.sdk.utils.chrome.OcrTest.seleniumTest(OcrTest.java:94)
at reyo.sdk.utils.chrome.OcrTest.main(OcrTest.java:374)
公司服务器使用的是Windows Server 2012,在上面装Opencv后,使用java代码 System.loadLibrary(Core.NATIVE_LIBRARY_NAME); 总是提示opencv_java410.dll: Can't find dependent libraries,搜索N多资源无解,最终通过Dependency Walker 取得缺失的DLL列表,然后百度逐个下载不同版本的DLL测试,最终找到了完整的DLL包,分享给大家
下载地址:https://download.csdn.net/download/reyoreyoreyo/15010727
1. 先安装vc集合
2.将dll 下面的dll 文件拷贝到下面目录,windows server 系统缺少动态库
复制到windowssystem32 和 sysWoW64 各一份