Problem finding images with Sikuli 1.1.4 and java 11+

Asked by Anderson Cardoso

I'm trying to finding images using Sikuli 1.1.4 and java 11 or 12.

I took a print of an image in my desktop and tried to find it using screen.exists(image), but the image is never found.

When I compile my project with java 8 the image is found without problem.

Here is the basic code:

String image = "image.png";
if (screen.exists(image) != null) {
     System.out.println("FOUND");
} else {
     System.out.println("NOT FOUND");
}

There is some special configuration to Sikuli 1.1.4 work with newer java versions?

Thanks in advance.

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

Windows 10?

if yes, see:
bug 1730645

Can you help with this problem?

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

To post a message you must log in.