Java Sikuli program works within Netbeans but fails once built as a Jar
Hello all,
I have a Java project which processes automation against an insurance system using the Sikuli library. I've set my project up as follows:
• Imported sikuli-ide.jar into the Libraries folder (added to the "Compile" tab within the "Libraries" section of project properties).
• imported the relevant Sikuli functionality within my class hierarchy as needed e.g. "import org.sikuli.
• App works fine when running from within Netbeans. Attempting to run the finished Jar from the Dist folder I first receive the following errors:
[error] ResourceLoaderB
[action] ResourceLoaderB
After a short pause the script appears to start but none of the keystrokes actually function.
Here is a screenshot of the app working when being run from Netbeans: http://
When I run the final Jar from the Dist folder the "Keystroke" text field is populated with the above warnings.
I suspect that when the sikuli-IDE is moved to the Dist folder the file path is changing in such a way that the app is not able to import the classes any longer (a bit like if you've ever had to reference images within a Jar using getResource()). Just a hunch.
Any ideas?
Thanks,
Nathan
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by Nathan Ash-Vie
- by Nathan Ash-Vie
Can you help with this problem?
Provide an answer of your own, or ask Nathan Ash-Vie for more information if necessary.