TextRecognition within Java (SikuliApi 1.1.4)

Asked by Joost Voskuil on 2018-08-26

I'm using the 1.1.4 version of the sikuliapi.jar file within a java solution.
Code:

package Tests;

import org.junit.Test;
import org.sikuli.script.Screen;

public class MyTest
{
    @Test
    public void testA() throws Exception
    {
        Screen s = new Screen();
        s.findText("Text");
    }
}

When I run the test I receive an error: [error] RunTimeAPI: *** terminating: TextRecognizer: start: native libraries not found

What am I doing wrong here? Do I need the Tess4J libs aswell? I am confused about the scripts jar file, that is obsolete right?

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Joost Voskuil
Solved:
2018-08-26
Last query:
2018-08-26
Last reply:
2018-08-26
RaiMan (raimund-hocke) said : #1

I guess you are on Linux.

... not yet working - see docs

Joost Voskuil (joost81) said : #2

osx. think the same issue. Thank you