← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689093]: whether it can make runnable jar without other setting

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- for 2.0.2 whether it is possible to make one runable jar or file
including the custom script, without install jython or sikuli or java

principally this would be possible, but is not an intended feature for
SikuliX.

you could create an installer exe with tools like nsis.

Or have a look at portable apps, which can be used to create containers,
that can be run from a stick or cloud, without leaving anything on the
running system.

Be aware:
- the size would be above 200 MB
- the startup-time would be some minutes

SikuliX will always need Java and sikulixapi.jar available at runtime.

... and Jython, if you decide to implement your SikuliX app in Python.

Currently using JavaScript as scripting language, would make Jython not
needed (but it is announced, that the Java script engine will be removed
from Java somewhen in the future).

Another options are to write your app in plain Java or in any other Java
aware language, that does not need a runtime environment besides Java.

So in the end: SikuliX at least needs Java and sikulixapi.jar on the
system, that your app should run on.

--- BTW, for SikulixIDE to export script as jar, it will display "not
set",

this is a bug and fixed in 2.0.4 (should display the created jar's path)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.