← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #204177]: Sikuli-Script doesn't find the files in Netbeans

 

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

RaiMan posted a new comment:
--- ResourceManager.loadResources
Seems not to be an official Java feature. Seems to belong to Silverlight.

But anyway, this is totally different to what Sikuli needs to load image files: Normally you would need an absolute path to the image, because this is standard java.io
If you know the current working directory (like in the Netbeans case), you can use relative paths.

But this will only work, as long as you are testing in Netbeans.

If you finally decide to make a .jar, that can be run or imported, this
will no longer work, because the working directory at the time of
running your .jar usually is the folder from where the java command is
issued.

Conclusion: depending on your goals, you need a solution for an image
repository outside of your project and/or .jar.

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