Problem running the test in FAQ #2005. --- Put jar file name in apostrophes

Asked by Ivan Ho

"--- now make the following base test
on a command line run the following
java -jar %SIKULI_HOME%sikuli-script.jar -i"

when I run this I get error: unable to access jar file C:\Program
even though I have the path setup (its installed in the default dir and the path variable is correct)

How do I fix this? The FAQ only tells me what it should do. now how to fix it if it doesnt .

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Ok, thats basic batch scripting:

%SIKULI_HOME%sikuli-script.jar
seems to resolve in something like

c:\Program Files...

the blank breaks the file name, so try this:

java -jar "%SIKULI_HOME%sikuli-script.jar" -i

I will add a comment to the faq

Can you help with this problem?

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

To post a message you must log in.