Sikuli Usage

Asked by Peter Schaeffer on 2020-01-14

My question should be pretty easy. I am running Java 11.0.3. The online Sikuli documentation says that

import org.sikuli.script.SikulixForJython

should not work anymore. However, I have found that it does work and is actually required.

What am I missing?

Question information

Language:
English Edit question
Status:
Open
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2020-01-20
Last reply:
2020-01-17
RaiMan (raimund-hocke) said : #1

what version of SikuliX?

how are you using SikuliX? IDE? from commandline? Jython from commandline?

Peter Schaeffer (pschaeffer) said : #2

Bunch of answers.

I am using Sikuli 2.0.1

I tried three environments

Py Charm CE 2019.3.1 (works great)
  Environmental Variables - PYTHONUNBUFFERED=1;CLASSPATH=C:\Users\Peter\HeadlampJetty\SikuliX\sikulix-2.0.1.jar
  Python Interpreter - Jython 2.7
  Working Directory - C:\Users\Peter\HeadlampJetty\SikuliX\test1.sikuli

Two import statements work and are absolutely required

import org.sikuli.script.SikulixForJython
from sikuli import *

Windows command line (works great)
  java -cp "..\sikulix-2.0.1.jar;..\jython2.7.1\jython.jar" org.python.util.jython test1.py
  Working Directory - C:\Users\Peter\HeadlampJetty\SikuliX\test1.sikuli

Two import statements work and are absolutely required

import org.sikuli.script.SikulixForJython
from sikuli import *

Windows command line (works great)
  java -jar sikulix-2.0.1.jar -r test1
  Working Directory - C:\Users\Peter\HeadlampJetty\SikuliX

Both import statements are ignored

Can you help with this problem?

Provide an answer of your own, or ask Peter Schaeffer for more information if necessary.

To post a message you must log in.