[英]I'm getting Exception jniopencv_core.dll: Can't find dependent libraries error while trying Sikuli Java API test example
I want to test Sikuli Java API, to be specific http://code.google.com/p/sikuli-api/wiki/SikuliWebDriver . 我想测试Sikuli Java API,以特定于http://code.google.com/p/sikuli-api/wiki/SikuliWebDriver 。 The dependency is added using maven, ie 使用maven添加依赖项,即
<dependency>
<groupId>org.sikuli</groupId>
<artifactId>sikuli-webdriver</artifactId>
<version>1.0.1</version>
I'm using IntelliJ Idea 11 Community Edition on 64-bit Windows 7. 32-bit JDK 6 is used in project. 我在64位Windows 7上使用IntelliJ Idea 11 Community Edition。在项目中使用32位JDK 6。
I tried to use maven dependencies out of box as it described on the project site (still remembering, that there should be some native .dll installation, which doesn't occure when we use maven depencdencies only). 我试图按照项目站点上描述的方法使用开箱即用的Maven依赖项(仍然记住,应该有一些本机.dll安装,仅在使用Maven依赖时才不会发生)。 In runtime I've get Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\\Users\\User\\AppData\\Local\\Temp\\javacpp26205597583997\\jniopencv_core.dll: Can't find dependent libraries 在运行时,我在线程“主”中获取了异常java.lang.UnsatisfiedLinkError:C:\\ Users \\ User \\ AppData \\ Local \\ Temp \\ javacpp26205597583997 \\ jniopencv_core.dll:找不到依赖的库
Then I downloaded sikuli-r930-win32, installed it to C:\\SikuliX. 然后,我下载了sikuli-r930-win32,并将其安装到C:\\ SikuliX。 then added SIKULI_HOME system variable, setting path to C:\\SikuliX. 然后添加SIKULI_HOME系统变量,将路径设置为C:\\ SikuliX。 But still get the same error message in runtime. 但是在运行时仍会收到相同的错误消息。
Please, help! 请帮忙! Just ideas what to check. 只是想检查什么。
It was checked with http://DependencyWalker.com that opencv_core240.dll was lost (possibly, a common Windows 7 bug). 它与检查http://DependencyWalker.com是opencv_core240.dll丢失(可能的话,一个常见的Windows 7的错误)。 After it was downloaded from https://code.google.com/p/myrobotlab/source/browse/trunk/myrobotlab/thirdParty/repo/net.sourceforge.opencv/opencv/2.4.0/x86.64.windows/opencv_core240.dll?r=711 and placed to C:\\SikuliX\\libs\\ together with other .dlls, the problem was solved. 从https://code.google.com/p/myrobotlab/source/browse/trunk/myrobotlab/thirdParty/repo/net.sourceforge.opencv/opencv/2.4.0/x86.64.windows/opencv_core240下载后.dll?r = 711并与其他.dll一起放置到C:\\ SikuliX \\ libs \\中,此问题已解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.