sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55593
Re: [Question #664402]: Exception in thread "main" java.lang.NoSuchMethodError: org.sikuli.basics.Debug.init()V
Question #664402 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/664402
shiva k posted a new comment:
Hi Raiman,
i hva only sikulixapi.jar , but still i am facing issue below is my code .
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern;
import org.sikuli.script.Screen;
public class demo {
public static void main(String[] args) throws FindFailed {
Screen s=new Screen();
Pattern p = new Pattern("windows.PNG");
s.wait(p,2000);
s.click();
}
}
================================Result================================
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.sikuli.script.Region.<init>(Region.java:60)
at org.sikuli.script.Screen.<init>(Screen.java:132)
at sachin.demo.main(demo.java:8)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 2, end 3, length 2
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3756)
at java.base/java.lang.String.substring(String.java:1902)
at org.sikuli.basics.Settings.<clinit>(Settings.java:115)
... 3 more
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.