Re: [Sikuli-driver] [Question #703421]: Fail to use Screen.wait() function within jpype
Question #703421 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/703421 Status: Expired => Answered RaiMan changed the question status: Interesting: jpype. Will have a look into it (might take some time) -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #703421]: Fail to use Screen.wait() function within jpype
Question #703421 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/703421 Status: Open => Expired Launchpad Janitor expired the question: This question was expired because it remained in the 'Open' state without activity for the last 15 days. -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #703421]: Fail to use Screen.wait() function within jpype
Question #703421 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/703421 Reed Xia gave more information on the question: I'm using Windows 10, and below JDK openjdk version "1.8.0_345" OpenJDK Runtime Environment (Temurin)(build 1.8.0_345-b01) OpenJDK 64-Bit Server VM (Temurin)(build 25.345-b01, mixed mode) -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #703421]: Fail to use Screen.wait() function within jpype
Question #703421 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/703421 Description changed to: Hi, I'm trying to implement some test code with jpype(Python) and sikulixapi-2.0.5.jar, and get the problem below: # content of my_test.py from jpype import * JVM_PATH = r"C:\Program Files\Eclipse Adoptium\jdk-8.0.345.1-hotspot\jre\bin\server\jvm.dll" SIKULIX_JAR_PATH = r"D:\my_jars\sikulixapi-2.0.5.jar" BarPNG = "D:\\my_images\\nexusBar.png" LongTimeout = float(60) if __name__ == "__main__": try: startJVM(JVM_PATH, "-ea", "-Djava.class.path={}".format(SIKULIX_JAR_PATH)) Screen = JClass("org.sikuli.script.Screen") screenHandler = Screen() screenHandler.wait(BarPNG, LongTimeout) except Exception as e: print(e) shutdownJVM() it will throw exception when it runs into "screenHandler.wait(BarPNG, LongTimeout)", Python or JVM consider the wait() function is the one from java.lang.Object.wait, not the one from org.sikulix.script.Region (venv39) PS D:\dev\jpype_sikulix> (venv39) PS D:\dev\jpype_sikulix> No matching overloads found for java.lang.Object.wait(str,float), options are: public final void java.lang.Object.wait() throws java.lang.InterruptedException public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException Could someone help and know why? Thanks! -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp