← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #263436]: Jython Script works in Eclipse, but not in Command Prompt

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
jython -Dpython.path=C:\SikuliX1.1\sikulixapi.jar __init__.py

-Dpython.path=C:\SikuliX1.1\sikulixapi.jar
... is not needed, since this is added automatically at runtime by
import org.sikuli.basics.SikulixForJython

but as mentioned in the wiki:
sikulixapi.jar must be on the Java classpath.
The easiest way when running from commandline (before issuing the python command):
set CLASSPATH=C:\SikuliX1.1\sikulixapi.jar;%CLASSPATH%

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.