I have downloaded the TestRunMaven project and import as maven project into eclipse, run the main class TestRun on eclipse => works!
I tried to export this project as runnable jar file (with 1st option in library handling) => run the jar with command: java -jar sikuli3.jar
=> result error:
D:\Users\tuyennta\workspace\default\Sikuli-demo\run\sikili-image>java -jar sikuli3.jar[debug] ImagePath: add: jar:file:/D:/Users/tuyennta/workspace/default/Sikuli-demo/run/sikili-image/sikuli3.jar!/ImagesAPI.sikuli[debug] ImagePath: new BundlePath:/D:/Users/tuyennta/workspace/default/Sikuli-demo/run/sikili-image/[error] Image: Image not valid, but TextSearch is switched off![debug] Region: handleImageMissing: test.png[debug] Region: handleImageMissing: Response.ABORT: aborting[error] RunTimeAPI: Wait: Abort: unknown[error] RunTimeAPI: ImageMissing: test.png[debug] RunTimeAPI: final cleanup[debug] FileManager: deleteFileOrFolder:D:\Users\tuyennta\AppData\Local\Temp\Sikulix_1213072878
Here is the structure of runnable jar:
P/s: I also read the document and followed step to create a general java project or maven project, both worked when run in eclipse and did not work when export to jar file.
I have downloaded the TestRunMaven project and import as maven project into eclipse, run the main class TestRun on eclipse => works! I tried to export this project as runnable jar file (with 1st option in library handling) => run the jar with command:
java -jar sikuli3.jar
=> result error:D:\Users\tuyennta\workspace\default\Sikuli-demo\run\sikili-image>java -jar sikuli3.jar
[debug] ImagePath: add: jar:file:/D:/Users/tuyennta/workspace/default/Sikuli-demo/run/sikili-image/sikuli3.jar!/ImagesAPI.sikuli
[debug] ImagePath: new BundlePath:/D:/Users/tuyennta/workspace/default/Sikuli-demo/run/sikili-image/
[error] Image: Image not valid, but TextSearch is switched off!
[debug] Region: handleImageMissing: test.png
[debug] Region: handleImageMissing: Response.ABORT: aborting
[error] RunTimeAPI: Wait: Abort: unknown
[error] RunTimeAPI: ImageMissing: test.png
[debug] RunTimeAPI: final cleanup
[debug] FileManager: deleteFileOrFolder:D:\Users\tuyennta\AppData\Local\Temp\Sikulix_1213072878
Here is the structure of runnable jar: P/s: I also read the document and followed step to create a general java project or maven project, both worked when run in eclipse and did not work when export to jar file.