1
我試圖執行下面的Java代碼時可能會遇到異常:無法加載Skuli庫
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...