[1.1.1] problems with setup for Java usage

Asked by ashish on 2017-12-20

I am running a small program
public static void main(String[] args) throws FindFailed, InterruptedException {
  Screen screen = new Screen();
  Region r = screen.find("C:\\Users\\KHANDELA1\\Pictures\\AssetName_excel.PNG").below(20);
  String read = r.text();

using sikulixapi.jar from sikulixsetup1.1.1.jar but I am getting the below error
*** classpath dump
  0: /C:/Users/KHANDELA1/workspace/DAMRegression/bin/
  1: /C:/Users/KHANDELA1/Documents/Jars%20for%20Ant/cucumber-jvm-deps-1.0.3.jar
  2: /C:/Users/KHANDELA1/Documents/Jars%20for%20Ant/cucumber-reporting-0.1.0.jar
  3: /C:/Users/KHANDELA1/Documents/Jars%20for%20Ant/gson-2.3.1.jar
  4: /C:/Users/KHANDELA1/Documents/Jars%20for%20Ant/gson-2.8.0.jar
26: /C:/Users/KHANDELA1/Documents/jar/sikulli/sikulixapi.jar
*** classpath dump end
[error] RunTimeINIT: *** terminating: libs to export not found on above classpath: /sikulixlibs/windows/libs64

Please help to resolve this

Also when I am running the setup with option 3 (OCR) also checked I get the pop up that trying to extract from: tesseract-ocr-3.02.eng.tar.gz but nothing happens after that

Please help

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

I recommend, to purge everything you have currently of SikuliX from your system
(see: http://sikulix-2014.readthedocs.io/en/latest/basicinfo.html#some-general-aspects)

... and start allover new with downloading and running the setup jar.

Before integrating it with your Java programming environment, you might do a test from command line:
java -Dsikuli.Debug=3 -jar <path-to>\sikulixapi.jar

... just cancel the popup dialog.

The debug output should show no errors.

Then add sikulixapi.jar to your project: should work.

You might as well setup a sikulixapi.jar with the 1.1.2 setup (nightly build) and use this:

Can you help with this problem?

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

To post a message you must log in.