Run script in different directory with sikulix.jar

Asked by dongleilin on 2019-06-20

Hi,

There is a problem..

I put sikulix.jar at D:/SikuliTest/ directory and skl script at D:/SikuliTest/Script/ ...

There always be problem when I execute skl script by shell command "java -jar sikulix.jar -r D:/SikuliTest/Script/skl" ...
(My option is that can't find the skl script)

Can I execute skl script by shell when sikulix.jar and skl at different directory?

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2019-06-20
Last reply:
2019-07-04
Shengx (shengxyz) said : #1

You might be able to solve this problem by breaking up in to 2 steps:

1. Set your directory, for example: cd <directory name & folder name>

2. Call the script or jar file AFTER the directory has been set, for example: Java -jr <file or jar name>

Or simply type in the file name without java -jar

RaiMan (raimund-hocke) said : #2

with latest 1.1.4:

java -jar <path-to>\sikulix.jar -r <path-to>\someScript.sikuli

or

java -jar <path-to>\sikulix.jar -r <path-to>\someScript.skl

Can you help with this problem?

Provide an answer of your own, or ask dongleilin for more information if necessary.

To post a message you must log in.