running exported script .jar on Windows 10 command line

Asked by George Varghese on 2020-02-08

Windows 10 professional with java 11 from AdoptOpenJDK

Sikuli 2.02

I exported jar file from IDE . Message showed up Sikuli IDE "not set" - what does that mean?. however it did produce .jar file of the script. I have sikulix-2.0.2.jar, jython-standalone-2.7.1.jar and sikulixapi-2.0.2.jar all in the same folder

I ran the command
java -jar C:\Sikuli\t1_sikuli.jar #(t1_sikuli.jar) is the .jar file produced in the previous step

get the message Invalid or corrupt jarfile. (didn't the .jar file was not created properly because of the previous error message"

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
George Varghese
Solved:
2020-02-09
Last query:
2020-02-09
Last reply:
2020-02-09
RaiMan (raimund-hocke) said : #1

you have to use:

java -jar <path-to>\sikulix-2.0.2.jar - r C:\Sikuli\t1_sikuli.jar

The exported jar is not self-runnable. It is only some zip-container for the script and the images.

George Varghese (vargheseg) said : #2

thanks RaiMan that worked