Successful add of class-based image path, unable to load images --- fixed see related bug

Asked by Mike Bedwell on 2018-03-02

This is successful

This is also successful
Pattern gather = new Pattern("/images/gatherWood.png");

This fails, though, I think since the Image path modification was successful, it shouldn't
Pattern gather = new Pattern("gatherWood.png");

How do I check the reason for the failure? The image is stored at src/main/resources/images and I have checked that in the jar file images/gatherWood.png exists.

Question information

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

fixed after making it a bug

Mike Bedwell (bedwell2012) said : #4

Thank you much. I was hesitant to report it as a bug, as I'm still quite a rookie with Java (I've spent my last 10 years stuck with the .net implementations my company uses) and wasn't sure I just didn't understand the intended path mechanism.

RaiMan (raimund-hocke) said : #5

--- I was hesitant to report it as a bug
... no problem, since I see everything SikuliX related and can turn everything vice versa ;-)

The most important thing as always is content - not headline:
Your description and evaluation was precise - it directly lead me into the buggy area.