sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56443
[Question #695117]: Error in command line execution
New question #695117 on Sikuli:
https://answers.launchpad.net/sikuli/+question/695117
Getting below error while running via command line. Executes successfully in eclipse.
Sikuli version used - sikulixapi-2.0.4.jar
Error is coming in code: Pattern certImage = new Pattern("C:\\test\\util\\cert.png");
File exists in above path. Kindly help to resolve the error.
Error:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)
Caused by: java.lang.ExceptionInInitializerError
at org.sikuli.script.Pattern.<init>(Pattern.java:127)
at com.test.web.RoboWebTest.executeWebTestCase(RoboWebTest.java:34)
at com.test.main.RoboMain.executeWebTestsInSequence(RoboMain.java:82)
at com.test.main.RoboMain.main(RoboMain.java:58)
... 5 more
Caused by: java.lang.NullPointerException
at org.sikuli.script.support.RunTime.init(RunTime.java:1230)
at org.sikuli.script.support.RunTime.get(RunTime.java:1060)
at org.sikuli.script.support.RunTime.get(RunTime.java:915)
at org.sikuli.script.support.RunTime.loadLibrary(RunTime.java:1689)
at org.sikuli.script.Finder$Finder2.<clinit>(Finder.java:536)
... 9 more
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.