← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #227560]: Runnable JAR file

 

Question #227560 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/227560

    Status: Open => Needs information

RaiMan requested more information:
I guess in your code you are using something like "images/some-
image.png" and the images folder is in your Eclipse project folder.

Running your stuff inside Eclipse works fine, because the working folder
is your project folder.

If you try to run the jar from command line, then usually your current
working folder is not the project folder and hence the images cannot be
found.

You have to somehow define, where either relative to your working folder
or with an absolute path your images are.

The imagepath feature in class ImageLocator might be helpful too.

If my guessing is not right come back with more details on how you do
it.

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