Can't find Sikuli-Script.jar

Asked by emrah kara

I downloaded "Download Sikuli X 1.0rc3 "Maltipoo" today. But i cant find sikuli-script. jar. I dowloaded one sikuli-script.jar from internet external, but i cant import "org.sikuli.script.*;".

After i type org. there is now "sikuli" to choose.

Can someone please help me about it?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Jacob Dorman (japhezbemeye) said :
#1

Are you scripting in Sikuli, Eclipse, or another IDE?

If you're using Eclipse or Netbeans, but having trouble detecting it as an external library, you will need to make sure that it is included as a library for your project.

Here's the official guide for getting sikuli working in another IDE:
http://sikuli.org/docx/faq/040-other-ide.html

If you have any difficulty getting it set up, just post here with what you've tried and what configuration you're using and we'll do our best to help you out.

Revision history for this message
emrah kara (emrah-karakoc) said :
#2

I use Eclipse on Mac. My project on Eclipse includes the "library" and "sikuli-script.jar".

http://www.myimg.de/?img=Bildschirmfoto20120413uf0d68.png

But i downloaded my sikuli-script.jar external from google because there is now pfad like "Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar " on my mac as it is explained on the sikuli.org

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

It seems that you are programming in Java.

As stated in the docs, you have to install Sikuli before using stuff in Eclipse.
This is necessary for Sikuli to find its needed components, when running a Java program from within Eclipse, that uses the Sikuli API.

If you did, the above mentioned folder is at:
/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar

since "installation" on a Mac usually means to copy the dmg-contained app-bundle to the program folder /Applications.

In Finder you can open the bundle with context-menu 2nd entry (show bundle content or something like that).

When in Eclipse, it is not possible to navigate into the bundle Sikuli-IDE.app to set the library to sikuli-script.jar. I solved that by setting a variable to /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar that in turn can be used for the library reference definition.

If you do not get it working this way: in Finder COPY sikuli-script.jar to some "real" folder and reference it from there.

Revision history for this message
emrah kara (emrah-karakoc) said :
#4

Thanks RaiMan, that solved my question.

Revision history for this message
emrah kara (emrah-karakoc) said :
#5

That was what i need ;)
>> In Finder you can open the bundle with context-menu 2nd entry (show bundle content or something like that).

Thank you very much!

Revision history for this message
Jorge (jantillonc) said :
#6

Yes sir, its working now.

Thanks a lot