Sikuli setup for Java in Eclipse

Asked by Claudia Rodriguez

Hello, I'm trying to get sikuli setup to integrate with Java in Eclipse.

There are documents telling different things! Please clean it up!
Some docs say I should define the name of the environment variable as SIKULE_HOME others mention SIK_HOME.

It's not clear if it's required to have the Sikuli IDE when all I want to do is integrate with Java. If I read the documentation in the Setup window it seems I just need to download option 4-Package 3 however this only contains one jar file => sikuli-java.jar
AND
some docs say it's preferable to have the sikuli-java.jar in the Java classpath, others say it's the sikuli-script.jar
AND
this other document asks to download a standalone api for JAVA
https://code.google.com/p/sikuli-api/

Other docs where info extracted from:
https://dl.dropboxusercontent.com/u/42895525/SikuliX/SikuliX-API-JavaDocs/index.html
http://doc.sikuli.org/faq/030-java-dev.html
https://answers.launchpad.net/sikuli/+faq/1436

First time I downloaded the Sikuli IDE as the description of this package says that it could be use to integrate with Java however the sikuli-script.jar wasn't part of it.. and when I ran a java script from Eclipe it gave me the error saying "Terminating: The jar in use was not built with setup!" and based on what I read on other questions I decided to re-install and just download the option that allows me to integrate with Java.

I haven't gotten to the point of seeing if it works because I see different instructions on what to do...

Can you please clarify what is the environment name and what is the jar file required?

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

--- doc.sikuli.org (http://doc.sikuli.org)
... is still on the level of SikuliX-1.0rc3 and will be revised towards release of version 1.1.0 in December

--- https://code.google.com/p/sikuli-api/
... is a feature compatible (to some extent)Java-only implementation of Sikuli - but is totally different in usage and API and does not seem to be developed further currently.
So you have to decide: either this or SikuliX

--- SikuliX-1.0rc3 ...
it is still available, but I will stop supporting it latest beginning 2014

--- SikuliX version 1.0.1+ (next major 1.1.0)
... start here to get on the road: http://www.sikuli.org/download.html
I think I should add some information for the Java only people on this page, to know what to do earlier.

--- what do you need:
- run setup and select option 4 to get package 3 only (produces sikuli-java.jar and this is what you need)
- and then simply take care, that a reference to sikuli-java.jar is in the class path

hope it helps.

Can you help with this problem?

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

To post a message you must log in.