[2.0.0] IDE: can't export to executable jar --- feature no longer available
I'm not sure if anyone else is experiencing this, but 2.0 version the export "Export as jar" seems to be broken.
It packs the script almost instantly as opposed to the usual 10 secs (No popup either). WHen you try to run the jar it says: Invalid or corrupt jar file
I can't reproduce the same error on 1.1.3 (Works fine there with the same script used above)
Thank you
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- 2019-11-18
- Last query:
- 2019-11-18
- Last reply:
- 2019-10-30
RaiMan (raimund-hocke) said : | #1 |
To run SikuliX scripts in whatever form, the system must have a valid minimum SikuliX setup.
For Jython scripts (.sikuli, .py (plain file), .skl, .jar) this must be:
- sikulixapi.jar
- Jython 2.7.1 jar
then you can run scripts from command line using
java -jar sikulixapi.jar -r script
|
#2 |
The still available feature: menu File -> export as jar creates a jar containing the scripts in a "compiled" form, that can be run using SikuliX on command line.
RaiMan (raimund-hocke) said : | #3 |
see your other question
xyz_User (userseven) said : | #4 |
Thanks RaiMan, that solved my question.