← Back to team overview

sikuli-driver team mailing list archive

[Question #694783]: ImagePath.addJar() does not handle several calls

 

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

I have a project where I use the Sikulix Java API (version 2.0.4) with JUnit 4.
I load dynamically the test jar to use from a GUI, thus all jars are not loaded at start but at run time in a separate URLClassLoader (same one for all tests).
I want to use the Imagepath.addJar() at each test jar loading to get the images for the current test, but only the first call to addJar() is taken into account, the next calls seems to be just ignored.

How may I load several jars containing image ressources in the ImagePath ? Or is it possible to wipe the currently loaded images jar to replace it by a new one ?

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