Run portable Sikuli script with portable Java

Asked by Jonathan

Hi, I have written a Sikuli script on my computer and I would like to be able to run it on other computers as well. I have been stuck on this problem for a few hours and I can't seem to be able to find what I'm doing wrong. I have already tried to run the script with portable Java and portable sikuli but without results. It turns out there's a few errors in the command prompt about Java but when I run it on the computer I have written the script on, it works. I'm pretty sure the error is related to a Java path but I changed the Environment Variables to my flash drive path, but it also fails. I took screenshots of the error in CMD (the same error split in 3 parts, since there's not enough space):

part 1: http://s16.postimage.org/r5yncgyqd/error1.png
part 2: http://s7.postimage.org/6ggs1rfkb/error2.png
part 3: http://s13.postimage.org/bx5yqgqtz/error3.png

Thanks for the help!

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

--- in the Sikuli-IDE folder on the stick, you need copies from the Sikuli installation
- sikuli-script.jar
- the libs folder

when running the command
java -jar ....\sikuli-script.jar ....somescript.sikuli

the system path must contain:
....\Sikuli-IDE\libs
....\Java\jre6\bin

all path's have to be adjusted to your situation.

Can you help with this problem?

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

To post a message you must log in.