← Back to team overview

sikuli-driver team mailing list archive

[Bug 1835908] Re: could not initialize class org.sikuli.finder

 

My project does not use maven dependencies (and to make it use it, i
need to create a new project in netbeans that is regarded as "maven
project", which i would rather avoid). I simply downloaded the ready-to-
use .jar file and replaced my previous one with it, like i was doing
before, however, newest version seems to not work anymore.

If it no longer works like this, could i get a link to a guide how to
use latest sikulix build?

Also, the latest build gave me same error

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1835908

Title:
  could not initialize class org.sikuli.finder

Status in Sikuli:
  New

Bug description:
  Exception in thread "Thread-145" Exception in thread "Thread-133" java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.Finder$FindInput2
  	at org.sikuli.script.Finder.<init>(Finder.java:36)
  	at OlegServer.Tests.MurderInAlpsTests.lambda$existingObjects$1(MurderInAlpsTests.java:2392)
  	at java.base/java.lang.Thread.run(Thread.java:835)
  java.lang.NoSuchMethodError: com.sun.jna.Native.load(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Map;)Lcom/sun/jna/Library;
  	at org.sikuli.natives.SXUser32.<clinit>(SXUser32.java:9)
  	at org.sikuli.natives.WinUtil.<clinit>(WinUtil.java:37)
  	at org.sikuli.script.support.RunTime.addToWindowsSystemPath(RunTime.java:1631)
  	at org.sikuli.script.support.RunTime.libsExport(RunTime.java:1574)
  	at org.sikuli.script.support.RunTime.libsLoad(RunTime.java:1399)
  	at org.sikuli.script.support.RunTime.loadLibrary(RunTime.java:1603)
  	at org.sikuli.script.Finder$Finder2.<clinit>(Finder.java:571)
  	at org.sikuli.script.Finder$FindInput2.<clinit>(Finder.java:1210)
  	at org.sikuli.script.Finder.<init>(Finder.java:36)
  	at OlegServer.Tests.MurderInAlpsTests.lambda$existingObjects$1(MurderInAlpsTests.java:2392)
  	at java.base/java.lang.Thread.run(Thread.java:835)

  
  i am getting these exception when running:
    Finder objFinder = new Finder(BufferedImage);
  This code worked fine on sikuli 1.1.4 and then stopped working after updating to latest 1.1.4 build

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1835908/+subscriptions


References