Need to be able to run sikuli-ide when no java present

Asked by Brian Leone

I have some instances where I need to run a test where java is not present on the machine running the test. I tried using launch4j to create an exe, and got one to work - but I can't pass it any parameters - so the ide splash screen always appears. Since I'm trying to call this from another script, I need to be able to run it by command line - like "sikuli-ide -r test.skl". When I run this using the sikuli-ide.jar file, it works - when I run the sikuli-ide.exe I created, it only shows the collect runtime options.
Is there a version of sikuli-ide that I can run on a machine without java instead of trying to create my own?

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

--- Is there a version of sikuli-ide that I can run on a machine without java
simply no and there will never be such a thing from my side.

if you want to pack an executable Sikuli package using launch4j including a JRE, I would really recommend to use plain Java and pack it together with sikuli-java.jar (means you would have to convert your scripts to Java).

If this is impossible and you want to stick with the Jython scripting level, you should at least use sikuli-script.jar, since this is the package to run Sikuli scripts in the manner you are looking for.

according to the specification of the script to run using the -r parameter, you have to check Launch4J about how you can manage this.

Another option might be, to create a small (< 20 lines) Java wrapper, that gets the information about the script to run from somewhere else (e.g. an environment variable) and converts it to an appropriate call of
sikuli-script.jar::org.sikuli.basics.SikuliScript::main()

Can you help with this problem?

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

To post a message you must log in.