← Back to team overview

sikuli-driver team mailing list archive

[Question #257799]: sikuli click doesn't work using imageIcon

 

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

Hi Raiman,

Can you help me with the problem I am encountering when I am exporting my java file into a runnable jar file.
It seems that it can't find the images I specified inside the src.

When I am running the code on eclipse, it's running smoothly.
But when it's exported to a Runnable Jar File, it won't continue.

I have already checked it's zipped version and the images were there.

I can't seem to find the issue.
All the links that I have searched are telling me to use the ImageIcon attribute.
But when I used ImageIcon, sikuli's click function won't work.

As it is said in the click function, that it only accepts Pattern, Filename, Region, Match and Location.
Currently I'm declaring my images like this:

Pattern MetroSoundRecorder = new Pattern(path + "MetroSoundRecorder.png");

The hierarchy of my files are as follows:

src
   |_ com
   |_ img



-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.