Am not able to run the sikulix in eclipse, Sikulix throwing an error in cosolw

Asked by Kogul

When I try to run the below sample code, sikulix throwing an ExceptionInitializerError. Please find the below code. Please help me in resolving this.

Java Code:

public class FirstTestCase {
 public static void main(String[] args) {
  try {

   Pattern fileinputtextbox = new Pattern("D:\\sikupro\\sikuli\\sikuli\\images\\textinput.PNG");
   Screen src= new Screen();
   Region reg= src.find("textinput.PNG");

  } catch (FindFailed e) {
  } catch (InterruptedException e) {



Exception in thread "main" java.lang.ExceptionInInitializerError
 at org.sikuli.script.Pattern.<init>(
 at sikuli.FirstTestCase.main(
Caused by: java.lang.NullPointerException
 at org.sikuli.script.Finder$Finder2.<clinit>(
 ... 2 more
Exception in thread "Thread-0" java.lang.NullPointerException

Question information

English Edit question
SikuliX Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :

In any case it must be:
Region reg= src.find(fileinputtextbox);

What version of SikuliX? On what system?

Revision history for this message
Kogul (selvanathan4220) said :

Thanks for the reply RailMan Please find the below dependency.

<!-- -->

Revision history for this message
RaiMan (raimund-hocke) said :

What Windows system version?

Looks like a problem with the opencv_java342.dll (probably needed DLL's missing on your system).

May be this helps:

Can you help with this problem?

Provide an answer of your own, or ask Kogul for more information if necessary.

To post a message you must log in.