Question #693497 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/693497

    Status: Answered => Open

Jaroslav Novotny is still having a problem:
I made a new project just to investigate, got some new info. I was
hoping it was conflict in the "main" name, but looks like something
else.

This is the code:

import org.sikuli.script.*;
public class SikuliTest {
    public static void main(String[] args) {
        boolean path_add_success = ImagePath.add("SikuliTest/patterns/");
        System.out.printf("SikuliTest/patterns/ added?: %s" + "\n", 
path_add_success);
        for (ImagePath.PathEntry path : ImagePath.getPaths()) {
            System.out.printf("ImagePath: %s\n", path);
        }
        Pattern pattern = new Pattern("pattern.png");
    }
}

When running from IntelliJ all is fine. When from this .jar (unzipped
structure: https://i.imgur.com/kILFr1e.png) I get output:

e:\.....\Sikuli_Test_jar>java -jar Sikuli_Test.jar
SikuliTest/patterns/ added?: true
ImagePath: null
ImagePath: null
[error] Image: load: failed: jar:file: 
/E:/......./out/artifacts/Sikuli_Test_jar/Sikuli_Test.jar!/patterns//pattern.png

Weirdly the "/" gets doubled.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to