java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path

Asked by Santosh Nanduri on 2017-02-24

Hi There,

I am new to Sikuli and started off with a basic scenario using Selenium with Java..

JRE 1.8

And the dependencies used in pom.xml

<dependencies>
  <dependency>
   <groupId>org.seleniumhq.selenium</groupId>
   <artifactId>selenium-server</artifactId>
   <version>2.53.0</version>
  </dependency>
  <dependency>
   <groupId>org.sikuli</groupId>
   <artifactId>sikuli-api</artifactId>
   <version>1.2.0</version>
  </dependency>
  <dependency>
   <groupId>org.sikuli</groupId>
   <artifactId>sikuli-core</artifactId>
   <version>1.2.2</version>
  </dependency>
  <dependency>
   <groupId>com.googlecode.javacpp</groupId>
   <artifactId>javacpp</artifactId>
   <version>0.4</version>
  </dependency>
  <dependency>
   <groupId>nu.pattern</groupId>
   <artifactId>opencv</artifactId>
   <version>2.4.9-4</version>
  </dependency>
 </dependencies>

And I see the below error when I try to run the testcase as a JUnit test case,

java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path
 at java.lang.ClassLoader.loadLibrary(Unknown Source)
 at java.lang.Runtime.loadLibrary0(Unknown Source)
 at java.lang.System.loadLibrary(Unknown Source)
 at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
 at org.bytedeco.javacpp.Loader.load(Loader.java:410)
 at org.bytedeco.javacpp.Loader.load(Loader.java:353)
 at org.bytedeco.javacpp.opencv_core.<clinit>(opencv_core.java:10)
 at org.bytedeco.javacpp.helper.opencv_core$AbstractIplImage.create(opencv_core.java:909)
 at org.bytedeco.javacpp.helper.opencv_core$AbstractIplImage.createFrom(opencv_core.java:999)
 at org.bytedeco.javacpp.helper.opencv_core$AbstractIplImage.createFrom(opencv_core.java:971)
 at org.bytedeco.javacpp.helper.opencv_core$AbstractIplImage.createFrom(opencv_core.java:968)
 at org.sikuli.core.cv.ImagePreprocessor.createGrayscale(ImagePreprocessor.java:43)
 at org.sikuli.core.search.TemplateMatcher.findMatchesByGrayscaleAtOriginalResolution(TemplateMatcher.java:71)
 at org.sikuli.api.ImageTarget.getUnorderedMatches(ImageTarget.java:127)
 at org.sikuli.api.DefaultTarget.doFindAll(DefaultTarget.java:128)
 at org.sikuli.api.DefaultScreenRegion._find(DefaultScreenRegion.java:88)
 at org.sikuli.api.DefaultScreenRegion.find(DefaultScreenRegion.java:80)

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-02-24
Last reply:
2017-02-24
RaiMan (raimund-hocke) said : #1

This is not the Sikuli that I am responsible for:

   <groupId>org.sikuli</groupId>
   <artifactId>sikuli-api</artifactId>
   <version>1.2.0</version>

Here we are talking about SikuliX (http://sikulix.com)

Well, this page: http://www.sikuli.org/contact.html directs me to here. What do you mean by SikuliX now?

Can you help with this problem?

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

To post a message you must log in.