Getting extension to work within a Java binary?

Asked by Will P

Two questions:

  - Is it possible to run Sikuli extensions within a Java program that uses Sikuli? Current documentation only describes this for python .sikuli files.
  - If yes, are extensions written within python accessible to the Java program?

Thanks

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
Tsung-Hsiang Chang (vgod) said :
#1

1. Sure. A sikuli extension is essentially a Java JAR file, which can be loaded and used in any Java program if it's in the CLASSPATH.
2. It's possible. The java program need to invoke Jython (org.python.util.PythonInterpreter) to run the Python code, though.

Can you help with this problem?

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

To post a message you must log in.