can i compile .slk

Asked by Yevgeniy

can i compile my .slk or .sikuli to .jar or some thing similar to run that doesn't demand installing sikuli

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Principally it might be possible to make a .jar, that contains everything needed.

Besides your .sikuli/.skl it needs the content of sikuli-script.jar and the content of the libs folder (Windows/Linux) or the modified content of the Frameworks folder (Mac).

Basic information can be found in feature request bug 696822

The .jar has to be configured, so that when started using java -jar it starts the contained jython, that in turn starts processing your contained script.py.

But in the moment, you have to add some bootstrap function, that does the following, when the .jar is started:
- set some relevant java system properties (class path, python path, ...)
- copy the native library modules (content of libs) to the appropriate temp folder (cannot be loaded from a .jar)
- set system path appropriately
- copy the contained images to a temp folder and set it to bundle path (Sikuli cannot load images from a .jar)

It might be easier in the moment to make a self-extracting zip (same contents as above), that contains a .cmd, that starts the stuff.

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

Another possible solution is using PortableApps.com (I got this running with 10.2).

Can you help with this problem?

Provide an answer of your own, or ask Yevgeniy for more information if necessary.

To post a message you must log in.