sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #41153
[Question #431583]: How to import org.sikuli.script with sikulixapi.jar
New question #431583 on Sikuli:
https://answers.launchpad.net/sikuli/+question/431583
Hello!
I am attempting to use SikuliX with my jython environment, but I also want to use jython-standalone.
I managed to install Sikulix 1.1 on my machine, and I now want to run SikuliX with my jython-standalone-2.7.0.jar.
I have added sikulixapi.jar to PATH and CLASSPATH environmental variables, as well as having
sys.path.append("C:/Tests/Sikuli/sikulixapi.jar")
import org.sikuli.script.SikulixForJython
from sikuli import *
in the beginning of my script;
To run the script, I am running
java -jar jython-standalone-2.7.0.jar myScript.py
I am getting the error:
RunTimeINIT: ***Terminating: no valid Java context for SikuliX available (java.security.CodeSource.getLocation() is null)
I know I must be doing something wrong; but first I want to ask is it even possible to use SikuliX with standalone jython, and if it is possible, what can I do to try and resolve this problem? I have looked at similar threads, and I know it is probably an environmental variable problem...
Thanks!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.