Jar File searches in first folder of ImagePath only

Asked by Den

Hello,

i have a problem with jar built. It looks for images only in one (first added) folder and ignores others folder in ImagePath.

I print out the ImagePath and all added folders are normally shown. But if finding in the first folder fails, the script stopps.

I have already tried all variants but I still cannot find a solution. Please, help me.

I add this way:

 ImagePath.add("launcher.Launcher/images/general");
  ImagePath.add("launcher.Launcher/images/general/registration");
  ImagePath.add("launcher.Launcher/images/general/server");
ImagePath.add("launcher.Launcher/images/general/buttons");

[error] Image: could not be loaded: jar:file:/D:/workspaces/default/firmname/target/project-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/images/general/registration/ok.png
[error] Image: Image not valid, but TextSearch is switched off!
FindFailed: Region: doFind: Image not loadable: ok
  Line 2535, in file Region.java

 The image "ok" is in the folder "buttons".

If i run this in eclipse, it works fine.

How could I solve that?

Tahnks in advance,

Den

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I have to check.

Can you help with this problem?

Provide an answer of your own, or ask Den for more information if necessary.

To post a message you must log in.