sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28653
[Question #255605]: ImageLocator.setBundlePath is deprecated
New question #255605 on Sikuli:
https://answers.launchpad.net/sikuli/+question/255605
Hi,
I just wanted to try my luck with working with sikulix api jar directly using Java in eclipse.
As I am already have some experience with Sikuli (while using it in as Jython scripts), I wanted to try the same things in Java to get myself familiar with the concept.
So one of the first things I tried is to get and set my bundlePath (where the images are located). In my Jython scripts I keep one images repository folder.
After some reading and trying I came up with Settings.bundlePath(), however according to the below question, this is not the correct way to do that:
https://answers.launchpad.net/sikuli/+question/235073
It was also mentioned there that now, one should use ImageLocator class for that. So I've tried to do something like this:
System.out.print(ImageLocator.getBundlePath());
However, in my Eclipse IDE, the ImageLocator and getBundlePath words get a strike through them, saying that this class (and method) are deprecated.
What am I reading/doing wrong and what's the correct way to deal with bundlePath while working in Java?
Thanks in advance,
Eugene S
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.