← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #200666]: Error when trying to find image using eclipse Java

 

Question #200666 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/200666

    Status: Open => Answered

RaiMan proposed the following answer:
@ j-the-k
In Windows and Mac Sikuli distribution contains the needed OpenCV stuff, so this cannot be the cause.

@ the question
In Eclipse, you have to take care, that the internally used environment when running your stuff contains the mentioned environment variables. There is a run option, that copies the external environment.

It seems, that your PATH misses the entry path-to-java/jre6/bin

To check, that Sikuli generally works, do this on command line:

SIKULI_HOME=D:\CHNMCT48977L\Setup\Sikuli\Sikuli-X-1.0rc2-win32\Sikuli-X-1.0rc2-win32\Sikuli-IDE
CLASS_PATH=D:\CHNMCT48977L\Setup\Sikuli\Sikuli-X-1.0rc2-win32\Sikuli-X-1.0rc2-win32\Sikuli-IDE\libs
PATH=%PATH%;D:\CHNMCT48977L\Setup\Sikuli\Sikuli-X-1.0rc2-win32\Sikuli-X-1.0rc2-win32\Sikuli-IDE\libs
java -jar %SIKULI_HOME%\sikuli-script.jar -i

this should open an interactive Sikuli session.

Be aware, that for using interactive capture in Java
(Screen.userCapture()), the above mentioned java path entry must be
present too.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.