python

Asked by JN

from jpype import *
import jpype

jvmPath = getDefaultJVMPath()
startJVM(jvmPath, "-ea", r"-Djava.class.path=/Users/name/Desktop/sikulixapi-2.0.1.jar")
print(jpype.isJVMStarted())
Screen = JClass("org.sikuli.script.Screen")
s = Screen()
s.click(r'img/test.png')
shutdownJVM()

Stops executing on s=Screen(), don't know how to deal with it

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

error message? stack trace?

from jpype import *
import jpype

does not make sense:
either
from jpype import *

or
import jpype

Revision history for this message
JN (nye0823) said :
#2

Ok, change from jpype import * as you said
But it ends up stopping at s = Screen(), waiting without doing anything like click
I felt unable to instantiate because I took a jar from someone else that could be instantiated
Due to the lack of information, I can only turn to you for help. Thank you for your time

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.