尝试执行以下 java 代码时遇到异常:
package testSikuliPackage;
import org.sikuli.script.*;
public class MyFirstSikuliTest {
public static void main(String[] args) throws FindFailed {
float similarity = (float) 0.8;
int timeout = 5;
Pattern winStartBtn = new Pattern("img/start.PNG");
Screen s = new Screen();
if (s.exists(winStartBtn.similar(similarity), timeout) != null) {
try {
s.click(winStartBtn, 0);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
我已确保使用 Java 32 位。确保 java 和 sikuli 的环境变量设置正确。无法弄清楚到底是什么问题!
C:\Users\Admin\AppData\Local\Temp\tmplib\VisionProxy.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1003)
at com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:44)
at org.sikuli.script.Finder.<clinit>(Finder.java:33)
at org.sikuli.script.Regi...