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

Description changed to:
**************** tracked on GitHub: 
https://github.com/RaiMan/SikuliX1/issues/400
-------------------------------------------------------------------------------------------------------------------------------

I tried to use Jpype1 (https://pypi.org/project/JPype1/) to automate GUI with 
'sikulixapi.jar' on macOS.
This package works well when I imported it on my java project, but had problem 
when I used Jpype1 to access it.

Here is my code:
`from jpype import *

startJVM(get_default_jvm_path(), '-ea', 
r'-Djava.class.path=somepath/sikulixapi.jar')
Screen = JClass('org.sikuli.script.Screen')
s = Screen()
`
When the code ran into 'Screen = JClass('org.sikuli.script.Screen')', my 
program was in deadlock. Not any responses unless ending the python process.

I'm looking forward to your suggestions,thanks.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to