← Back to team overview

sikuli-driver team mailing list archive

[Question #280218]: SilkuliX can't find images in an executable jar.

 

New question #280218 on Sikuli:
https://answers.launchpad.net/sikuli/+question/280218

I'm packaging a SikuliX application up as an executable jar file and I'm having trouble with the path to the images.  The jar file has a directory called /images where all of the .png files live but when I pass “images/icon.png” to any method that takes a PFRML the image can not be found.  SikuliX is looking in the current working directory so I get a message like:

[error] Image: could not be loaded: file:/C:/sandbox/qe/target/file:/B:/sandbox/qe/target/qe-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/images/icon.png

How do I get SikuliX to look in the “images” directory of the jar file?

Thanks,
Spence

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