question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

opencv_java320.dll when using with selenium-java

See original GitHub issue

Hi, I’m using Sikulix with selenium in java. When I upgraded sikulixapi.jar to version 1.1.4 and used text() function I have got an error with opencv_java320.dll

Caused by: org.sikuli.script.SikuliXception: fatal: loadlib: opencv_java320.dll not in any libs folder
	at org.sikuli.script.support.RunTime.terminate(RunTime.java:1239)
	at org.sikuli.script.support.RunTime.libsLoad(RunTime.java:1418)
	at org.sikuli.script.support.RunTime.loadLibrary(RunTime.java:1603)
	at org.sikuli.script.Finder$Finder2.<clinit>(Finder.java:571)
	... 37 more

I’m using this dependencies + latest sikulixapi.jar OS: Windows 10 Java 8

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.7.1</version>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
        </dependency>
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>3.141.59</version>
        </dependency>
        <dependency>
            <groupId>io.appium</groupId>
            <artifactId>java-client</artifactId>
            <version>6.0.0-BETA5</version>
        </dependency>
        <dependency>
            <groupId>com.github.2gis.winium</groupId>
            <artifactId>winium-webdriver</artifactId>
            <version>0.1.0-1</version>
        </dependency>
        <dependency>
            <groupId>com.github.2gis.winium</groupId>
            <artifactId>winium-elements-desktop</artifactId>
            <version>0.2.0-1</version>
        </dependency>
        <dependency>
            <groupId>org.postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <version>42.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi</artifactId>
            <version>3.17</version>
        </dependency>
        <dependency>
            <groupId>net.sourceforge.tess4j</groupId>
            <artifactId>tess4j</artifactId>
            <version>4.3.1</version>
        </dependency>
    </dependencies>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Dertdrillcommented, Jul 8, 2019

Looks like the problem was in:

<dependency>
       <groupId>io.appium</groupId>
       <artifactId>java-client</artifactId>
       <version>6.0.0-BETA5</version>
</dependency>

I updated it to the latest version and it looks like problems are gone.

Thanks for your time and cooperation. And thanks for Sikulix, it’s a great stuff 😃

0reactions
RaiMancommented, Jul 8, 2019

Thanks for feedback 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

no opencv_java320 in java.library.path" - Stack Overflow
Open your project in intellij Idea, · Go to File->ProjectStructure->Libraries then click + (Java) · Then add the .dll file. · Now go...
Read more >
Launching OpenCV Image Verifier for Selenium Java Test ...
I have developed and released the world's first image comparison library using OpenCV which is free and can be integrated to any test ......
Read more >
3 ways to solve java.lang.NoClassDefFoundError in Java J2EE
2) You might be running your program using the jar command and class was not defined ... UnsatisfiedLinkError: no dll in java.library.path Exception...
Read more >
Downloads | Selenium
Below is where you can find the latest releases of all the Selenium components. You can also find a list of previous releases,...
Read more >
How to handle Frames/iFrames in Selenium with Python
Then go to the 2nd frame; Find element using the link text method; Go back to the ... from selenium.webdriver.support.ui import Select.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found