← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673166]: [1.1.4] How to run .py script with Jython?

 

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

    Status: Answered => Open

Jean-Francois Thuong is still having a problem:
Hi,

Thanks for the answer

>> Follow the instructions on the download page to get the IDE running
with Jython.

Do you mean:
* Downloading jython-standalone.jar 
* running java -jar sikulix.jar
?

After doing that, running "java -Dsikuli.Debug=-2 -cp sikulix.jar
org.python.util.jython main.py" will lead to following error because
org.python.util.jython cannot be found in sikulix.jar.

===
Error: Could not find or load main class org.python.util.jython
===

What am I missing?

PS: For what that matters, this is the script I am running

from sikuli.Sikuli import *

notepad = App('notepad.exe')
notepad.open()
focusWindow = notepad.focusedWindow()
sleep(1)
type("hello!!{ENTER}How are you{SHIFT}?{ENTER}Good!")
notepad.close()

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