Share the created project

Asked by Oleksij Atirovich

Hello! I am creating a project in SikuliX-IDE 2.0.5. How can I share a runnable .jar project created in SikuliX-IDE 2.0.5 with other people so they don't have to run SikuliX? Can I somehow put all the necessary files in a folder so that the project is portable? As I understand it, to run my jar in User\AppData\Roaming\Sikulix\SikulixStore there must be lastUsedJar.txt with the path to the IDE.

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
Best RaiMan (raimund-hocke) said (last edit ):
#1

Sorry, but currently there is no such feature available, that allows to have a self-contained jar-file, that is executable without having the SikuliX IDE installed.

In 2.0.5 the features "Export as (runnable) jar" produce a jar file that contains the script folder contents, which in turn can be run from command line:

java -jar sikulixide.jar -r myScript.jar

The advantage over the .skl (zip-packed) is, that the scripts are pre-compiled Java-code and are a bit more safe against inspection/hacking.

The system to run such a jar must have Java 8+ installed and a working SikuliX IDE 2.0.5

Since the overhead for a self-contained jar is more than 150MB for some KB of script stuff, I do not think it makes sense to have such a feature.

But an installer, that takes care for a suitable OpenJDK and a usable SikuliX, to run script containers, is surely a valuable option. After summer I will have a deeper look on it.

Revision history for this message
Oleksij Atirovich (oleksij) said :
#2

Thanks RaiMan, that solved my question.

Revision history for this message
Oleksij Atirovich (oleksij) said (last edit ):
#3

Your command line option works too, thanks ;) I removed the manifest.mf from the jars and made a code that specifies a main class and runs with your code. Now the jars are not opened by double clicking and can only be opened with my file.