【发布时间】:2014-02-07 06:42:45
【问题描述】:
我已经使用sikuli-script(latest version 1.0.1) 创建了java application。
我将sikuli-script.jar 添加到Referenced Libraries(我使用此答案配置Answer Link)
java code 文件夹结构 -->
Java code -->
package com.example.sikuli;
import org.sikuli.script.*;
import java.util.concurrent.TimeUnit;
public class TestSikuli {
public static void main(String[] args) {
Screen s = new Screen();
App app = new App("C:/Program Files/Mozilla Firefox/firefox.exe");//firefox path
try{
app.focus();
TimeUnit.SECONDS.sleep(2);
s.click("imgs/1391152193781.png", 0);//url bar image
s.type(null, "http://www.google.lk", 0);
s.click("imgs/1391152289812.png", 0);//click search image
}
catch(FindFailed e){
e.printStackTrace();
}
}
}
之后我设置了Run Configutrtion,例如PATH和SIKULI_HOME
接下来我运行它正常工作的代码。
然后我使用launch4j 并根据此站点说明创建.exe --> How to Create an Executable File from Eclipse
之后我从command prompt 运行.exe 文件,然后出现以下错误。请帮帮我。
Error -->
[error] ResourceLoaderBasic: check: libs dir is empty, has wrong content or is outdated
[action] ResourceLoaderBasic: check: Please wait! Trying to extract libs to: C:\Documents and Settings\Dell\SikuliX\libs
[error] ResourceLoaderBasic: loadLib: Fatal Error 109: not found: C:\Documents and Settings\Dell\SikuliX\libs\VisionProxy.dll
[error] Terminating SikuliX after a fatal error(109)! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run againwith a Debug level of 3. You might paste the output to the Q&A board.
【问题讨论】: