[2.0.0] IDE: can't export to executable jar --- feature no longer available

Asked by xyz_User

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
Best RaiMan (raimund-hocke) said :
#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.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

see your other question

Revision history for this message
xyz_User (userseven) said :
#4

Thanks RaiMan, that solved my question.