No .bat or .jar files to execute the script without IDE

Asked by Johnson

<INFO> To run a .sikuli or .skl file in Windows, there are multiple options available in the documentation as well as in the FAQ's, however all the answers revolve around launching the sikuli-ide.exe file or the sikuli-ide.bat file or to launch it without the IDE there is sikuli-script.jar file with the command "java -jar %SIKULI_HOME%\sikuli-script.jar path-to-your-script\yourScript.sikuli" as in the documentation.

<ISSUE> My problem is - I dont have any of these files, neither in the project, nor in any other folder in the machine, all i got is
runIDE.cmd
runSetup.cmd
sikuli-ide.jar
sikuli-java.jar
sikuli-setup.jar

and a library of dll files. Now, I am able to work on the IDE (runIDE.cmd) and create scripts and "Export" to a .skl file, but

<QUERY> Am i missing any files ?? and if not,,
Can anyone help on "How do I get a command line statement to run a .skl / .sikuli file (USING THE FILES I HAVE), which i can later implement in any program (.bat or .exe)?? Looking for minimalistic user interaction with the execution of the script so., Non-IDE based solutions please...

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 :
#9

you have version 1.0.1
the docs and infos you talk about all are related to the still available but deprecated version 1.0RC3.

the actual usage with 1.0.1+:
http://sikulix-2014.readthedocs.org/en/latest/index.html#

and specially:
http://sikulix-2014.readthedocs.org/en/latest/faq/010-command-line.html

in your case (the docs already reflect version 1.1.0), the relevant command file is
runIDE.cmd

but you might as well use
java -jar sikuli-ide.jar
or
java -jar sikuli-script.jar

Revision history for this message
Johnson (eminem1316) said :
#11

@RaiMan - I read through the documentation for version 1.0.1 and the links you provided which give details for 1.1+, but I guess I am missing out on some files in my SikuliX 1.0.1, cos the first command that you suggested (java -jar sikuli-ide.jar) needs an interaction with the IDE or atleast a single click on the user's part -

<MY COMMAND>java -jar sikuli-ide.jar -r test.skl
(where the .jar file and the .skl file are in the same directory)
This command gives the result, however in this case the user needs to click on "OK" in the IDE pop-up.

The second command you suggested (java -jar sikuli-script.jar) could not be run, cos the project does not contain the file "sikuli-script.jar"

Alternatively, i tried running "java -jar sikuli-java.jar" but that gets me the error: "no main manifest attribute, in sikuli-java.jar"

Please help...

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

With version 1.0.1 at setup, you have to select option 2, to get a sikuli-script.jar.

Or you might switch to version 1.1.0, where things are a bit less complex ;-)

Revision history for this message
Johnson (eminem1316) said :
#13

Thanks RaiMan, that solved my question.

Revision history for this message
Johnson (eminem1316) said :
#14

Yes, worked., :) thanks a million.,