sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51134
[Question #679605]: getting NoSuchMethod error while executing the code.
New question #679605 on Sikuli:
https://answers.launchpad.net/sikuli/+question/679605
downloaded sikulixapi.jar 1.1.4 and build path confiured in eclipse. Please find the code.
Screen scr = new Screen();
Pattern apps = new Pattern("C:\\Users\\xyz\\Desktop\\Screenshot\\AppsHomePage.PNG");
scr.click(apps);
Getting below Error :
Exception in thread "main" java.lang.NoSuchMethodError: com.sun.jna.platform.win32.Psapi$MODULEINFO.createFieldsOrder([Ljava/lang/String;)Ljava/util/List;
at com.sun.jna.platform.win32.Psapi$MODULEINFO.<clinit>(Psapi.java:269)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.proxy.$Proxy4.<clinit>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
at com.sun.jna.Native.loadLibrary(Native.java:371)
at com.sun.jna.platform.win32.Psapi.<clinit>(Psapi.java:47)
at org.sikuli.natives.WinUtil.<clinit>(WinUtil.java:40)
at org.sikuli.script.RunTime.addToWindowsSystemPath(RunTime.java:1024)
at org.sikuli.script.RunTime.libsExport(RunTime.java:967)
at org.sikuli.script.RunTime.libsLoad(RunTime.java:792)
at org.sikuli.script.RunTime.loadLibrary(RunTime.java:996)
at org.sikuli.script.Finder2.<clinit>(Finder2.java:35)
at org.sikuli.script.Pattern.<init>(Pattern.java:123)
at com.cisco.solutions.quicksilver.em7.scripts.SilkuliCitrixCode.main(SilkuliCitrixCode.java:61)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.