← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #402799]: Bundle Pydev project with Sikuli 1.1.1 as executable JAR file

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
-- 1. SikuliX has nothing to do with the C-based Python. It only uses
Python language and the Java based interpreter Jython (at language level
2.7). Everything with SikuliX is implemented in Java.

-- 2. py2exe can only be used with C-based Python and hence cannot be
used with Sikuli(X) scripts, that need Jython as interpreter.

-- 3. You can use PyCharm to edit, run and debug SikuliX scripts (I
prefer PyCharm myself since I use IntelliJ also for Java)

-- 4. A runnable jar needs the following contents:
- the Jython runtime
- the sikulixapi.jar setup for the target system
- the script(s) and the images as resources
- a Java main, that prepares the environment (Jythonpath)  and loads the Jython interpreter
... and then grabs the main script from the jar as string and uses the interpreter to run it

... and the target system needs a valid Java installation.

Why do you want a runnable jar then???

Just run your scripts from commandline using the Jython interpreter.

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