Export as jar built a corrupt file

Asked by ANTONIO CARLOS PAES NASCIMENTO

Hi guys,

I'm trying to export my script as a jar file to execute in other machines without sikulix installed, but I'm getting some error with the generated file, the message it's that:

"Invalid or corrupted file"

Someone alredy get this error?

Thanks,

Antonio

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

does not work and is currently not supported (1.1.4)

Revision history for this message
ANTONIO CARLOS PAES NASCIMENTO (antonio.paes) said :
#2

Do you know some workaround?

Something like execute the created script by command line for example..

Thanks,

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

If you accept, that the system you want to run your scripts, needs a valid SikuliX installation, then look here:
https://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html#how-to-run-sikulix-from-command-line

for 1.1.4 the term <runsikulix(.cmd)> has to be substituted by <java -jar path-to-sikulixide.jar>.

Revision history for this message
ANTONIO CARLOS PAES NASCIMENTO (antonio.paes) said :
#4

Thanks RaiMan, that solved my question.