sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18640
Re: [Question #230619]: [1.0] Works in Eclipse, but not from commandline using Ant build file to run it
Question #230619 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/230619
Status: Open => Answered
RaiMan proposed the following answer:
-- 1. system path: G:\Program Files (x86)\apache-ant-1.9.1\bin;G:\eclipse\sikuli-script.jar;
to have G:\eclipse\sikuli-script.jar in the system path does not make any sense. No executables to load from there.
--2. why is sikuli-script.jar in G:\eclipse\ ?
You should work with references and not with copies! In your eclipse project properties you can set up a ref to G:\Program Files (x86)\SikuliX\sikuli-script.jar
Copying Sikuli stuff around is a big risk for future big problems.
--3. G:\Documents and Settings\Administrator\eworkspace\Sample\SikuliX\libs\
furthermore you seem to copy around the Sikuli libs folder. leave it in place at G:\Program Files (x86)\SikuliX\ and add in your global Windows environment settings to the system path: G:\Program Files (x86)\SikuliX\libs
So you have it one for all.
If you have all this, then the last thing to do is to specify in the global Windows environment settings:
SIKULI_HOME=G:\Program Files (x86)\SikuliX\
trailing slash mandatory with Sikuli X-1.0rc3
This allows Sikuli to know, where the installation is.
Again as a general recommendation: leave the Sikuli stuff in one place
and work with references!
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.