I have a question regarding selenium with sikuli runnable jar. I created a code for testing a page and when I run it from eclipse it does everything perfectly, but when I export it as runnable jar and start the script with java -jar filename.jar
it gives me the following error:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.ExceptionInInitializerError
at LogOut.main(LogOut.java:16)
... 5 more
Caused by: java.lang.NullPointerException
at org.sikuli.script.RunTime.init(RunTime.java:635)
at org.sikuli.script.RunTime.get(RunTime.java:291)
at org.sikuli.script.RunTime.get(RunTime.java:126)
at org.sikuli.script.RunTime.get(RunTime.java:316)
at org.sikuli.script.Region.<clinit>(Region.java:31)
... 6 more
So my question is basically how can jar give me those errors while eclips runs it with no problem. My goal is to create a jar that can be executed on another computer so I hope that you can help me figure this out. Thanks