這裏是我的簡單Sikuli Java代碼:Sikuli Java代碼:ResourceLoaderBasic:LOADLIB:致命錯誤110:加載:WinUtil.dll
import org.sikuli.script.App;
import org.sikuli.script.FindFailed;
/**
* Created by Ripon on 5/19/2015.
*/
public class Calculator {
public static void main(String... args)throws FindFailed, InterruptedException{
App.open("calc.exe");
}
}
當我跑了,在IntelliJ IDEA的結果顯示以下錯誤信息:
「C:\ Program Files \ Java \ jdk1.7.0_60 \ bin \ java」-Didea.launcher.port = 7533「-Didea.launcher.bin.path = C:\ Program Files(x86)\ JetBrains \ IntelliJ IDEA 14.0.2 \ bin「-Dfile.encoding = UTF-8 -classpath」C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ charsets.jar; C:\ Program Files \ Java \ jdk1。 7.0_60 \ jre \ lib \ deploy.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ javaws.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ li b \ jce.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ jfr.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ jfxrt.jar; C: \ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ jsse.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ management-agent.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ plugin.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ resources.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ rt.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ ext \ access-bridge-64.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ ext \ dnsns.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ ext \ jaccess.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ ext \ localedata.jar ; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ ext \ sunec.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ ext \ sunjce_provider.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ ext \ sunmscapi.jar; C:\ Program Files \ Java \ jdk1.7.0_60 \ jre \ lib \ ext \ zipfs.jar; D:\ Sikuli \ MySikuliProject1 \出\生產\ MySikuliProject1; d:\ Sikuli \ SikuliInstaller \ sikuli-ide.jar; d:\ Sikuli \ SikuliInstaller \ sikuli-JAV a.jar; D:\ Sikuli \ SikuliInstaller \ sikuli-setup.jar; D:\ Sikuli \ SikuliInstaller \ sikuli-tessdata.jar; C:\ Program Files(x86)\ JetBrains \ IntelliJ IDEA 14.0.2 \ lib \ idea_rt .jar「com.intellij.rt.execution.application.AppMain misc.Calculator [error] ResourceLoaderBasic:loadLib:致命錯誤110:加載:WinUtil.dll [error] ResourceLoaderBasic:loadLib:由於找到了本機庫, D:\ Sikuli \ SikuliInstaller \ libs \ WinUtil.dll:找不到依賴庫 [error] ResourceLoaderBasic:loadLib:檢查一個有效的Sikuli庫文件夾是否在運行時在系統路徑中! [error]致命錯誤(110)後終止SikuliX!對不起,但繼續下去沒有意義! 如果您對錯誤原因或解決方案沒有任何意見,請再次運行 ,調試級別爲3.您可能會將輸出粘貼到Q & A板上。
過程結束,退出代碼1
[error] ResourceLoaderBasic:check:目前沒有有效的libs路徑可用! [action] ResourceLoaderBasic:check:Please wait!試圖提取庫到jar父文件夾:D:/ Sikuli/SikuliInstaller/ [錯誤] ResourceLoaderBasic:loadLib:致命錯誤110:正在加載:WinUtil。dll [error] ResourceLoaderBasic:loadLib:由於找到了本機庫,它可能是需要的相關庫的問題 D:\ Sikuli \ SikuliInstaller \ libs \ WinUtil.dll:無法找到相關庫 [error] ResourceLoaderBasic: loadLib:在運行時檢查一個有效的Sikuli庫文件夾是否在系統路徑中! –
刪除libs文件後,我執行了我的腳本,顯示上面提到的錯誤信息 –
做了一個可能適合你的編輯。這是關於沒有正確設置的路徑。 – Tenzin