Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Un able to Execute the Driver class java.lang.UnsatisfiedLinkError #1

Open
gorthiananth opened this issue Oct 5, 2017 · 0 comments

Comments

@gorthiananth
Copy link

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'tesseract': Native library (darwin/libtesseract.dylib) not found in resource path ([file:/Users/agorthi/Downloads/ngWebDriver-master/target/test-classes/, file:/Users/agorthi/Downloads/ngWebDriver-master/target/classes/, file:/Users/agorthi/.m2/repository/org/testng/testng/6.10/testng-6.10.jar, file:/Users/agorthi/.m2/repository/com/beust/jcommander/1.48/jcommander-1.48.jar, file:/Users/agorthi/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/fluent/fluent-selenium/1.17/fluent-selenium-1.17.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-java/3.5.3/selenium-java-3.5.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-api/3.5.3/selenium-api-3.5.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-chrome-driver/3.5.3/selenium-chrome-driver-3.5.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-edge-driver/3.5.3/selenium-edge-driver-3.5.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-firefox-driver/3.5.3/selenium-firefox-driver-3.5.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-ie-driver/3.5.3/selenium-ie-driver-3.5.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-opera-driver/3.5.3/selenium-opera-driver-3.5.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-remote-driver/3.5.3/selenium-remote-driver-3.5.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-safari-driver/3.5.3/selenium-safari-driver-3.5.3.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/selenium-support/3.5.3/selenium-support-3.5.3.jar, file:/Users/agorthi/.m2/repository/cglib/cglib-nodep/3.2.4/cglib-nodep-3.2.4.jar, file:/Users/agorthi/.m2/repository/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar, file:/Users/agorthi/.m2/repository/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar, file:/Users/agorthi/.m2/repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar, file:/Users/agorthi/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.jar, file:/Users/agorthi/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar, file:/Users/agorthi/.m2/repository/org/w3c/css/sac/1.3/sac-1.3.jar, file:/Users/agorthi/.m2/repository/net/sourceforge/cssparser/cssparser/0.9.23/cssparser-0.9.23.jar, file:/Users/agorthi/.m2/repository/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar, file:/Users/agorthi/.m2/repository/com/google/guava/guava/23.0/guava-23.0.jar, file:/Users/agorthi/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar, file:/Users/agorthi/.m2/repository/com/google/errorprone/error_prone_annotations/2.0.18/error_prone_annotations-2.0.18.jar, file:/Users/agorthi/.m2/repository/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar, file:/Users/agorthi/.m2/repository/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar, file:/Users/agorthi/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar, file:/Users/agorthi/.m2/repository/net/sourceforge/htmlunit/htmlunit/2.27/htmlunit-2.27.jar, file:/Users/agorthi/.m2/repository/net/sourceforge/htmlunit/htmlunit-core-js/2.27/htmlunit-core-js-2.27.jar, file:/Users/agorthi/.m2/repository/net/sourceforge/htmlunit/neko-htmlunit/2.27/neko-htmlunit-2.27.jar, file:/Users/agorthi/.m2/repository/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3.jar, file:/Users/agorthi/.m2/repository/org/apache/httpcomponents/httpcore/4.4.6/httpcore-4.4.6.jar, file:/Users/agorthi/.m2/repository/org/apache/httpcomponents/httpmime/4.5.3/httpmime-4.5.3.jar, file:/Users/agorthi/.m2/repository/org/eclipse/jetty/jetty-client/9.4.5.v20170502/jetty-client-9.4.5.v20170502.jar, file:/Users/agorthi/.m2/repository/org/eclipse/jetty/jetty-http/9.4.5.v20170502/jetty-http-9.4.5.v20170502.jar, file:/Users/agorthi/.m2/repository/org/eclipse/jetty/jetty-io/9.4.5.v20170502/jetty-io-9.4.5.v20170502.jar, file:/Users/agorthi/.m2/repository/org/eclipse/jetty/jetty-util/9.4.5.v20170502/jetty-util-9.4.5.v20170502.jar, file:/Users/agorthi/.m2/repository/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar, file:/Users/agorthi/.m2/repository/net/java/dev/jna/jna-platform/4.1.0/jna-platform-4.1.0.jar, file:/Users/agorthi/.m2/repository/junit/junit/4.12/junit-4.12.jar, file:/Users/agorthi/.m2/repository/com/codeborne/phantomjsdriver/1.4.0/phantomjsdriver-1.4.0.jar, file:/Users/agorthi/.m2/repository/org/seleniumhq/selenium/htmlunit-driver/2.27/htmlunit-driver-2.27.jar, file:/Users/agorthi/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar, file:/Users/agorthi/.m2/repository/org/eclipse/jetty/websocket/websocket-api/9.4.5.v20170502/websocket-api-9.4.5.v20170502.jar, file:/Users/agorthi/.m2/repository/org/eclipse/jetty/websocket/websocket-common/9.4.5.v20170502/websocket-common-9.4.5.v20170502.jar, file:/Users/agorthi/.m2/repository/xalan/serializer/2.7.2/serializer-2.7.2.jar, file:/Users/agorthi/.m2/repository/xalan/xalan/2.7.2/xalan-2.7.2.jar, file:/Users/agorthi/.m2/repository/xerces/xercesImpl/2.11.0/xercesImpl-2.11.0.jar, file:/Users/agorthi/.m2/repository/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar, file:/Users/agorthi/.m2/repository/org/eclipse/jetty/jetty-server/9.4.3.v20170317/jetty-server-9.4.3.v20170317.jar, file:/Users/agorthi/.m2/repository/net/sourceforge/tess4j/tess4j/3.2.1/tess4j-3.2.1.jar, file:/Users/agorthi/.m2/repository/com/github/jai-imageio/jai-imageio-core/1.3.1/jai-imageio-core-1.3.1.jar, file:/Users/agorthi/.m2/repository/org/ghost4j/ghost4j/1.0.1/ghost4j-1.0.1.jar, file:/Users/agorthi/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar, file:/Users/agorthi/.m2/repository/commons-beanutils/commons-beanutils/1.9.2/commons-beanutils-1.9.2.jar, file:/Users/agorthi/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar, file:/Users/agorthi/.m2/repository/org/apache/xmlgraphics/xmlgraphics-commons/1.4/xmlgraphics-commons-1.4.jar, file:/Users/agorthi/.m2/repository/com/lowagie/itext/2.1.7/itext-2.1.7.jar, file:/Users/agorthi/.m2/repository/net/sourceforge/lept4j/lept4j/1.2.3/lept4j-1.2.3.jar, file:/Users/agorthi/.m2/repository/org/rococoa/rococoa-core/0.5/rococoa-core-0.5.jar, file:/Users/agorthi/.m2/repository/cglib/cglib/2.2.2/cglib-2.2.2.jar, file:/Users/agorthi/.m2/repository/asm/asm/3.3.1/asm-3.3.1.jar, file:/Users/agorthi/.m2/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar, file:/Users/agorthi/.m2/repository/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar, file:/Users/agorthi/.m2/repository/org/slf4j/slf4j-api/1.7.20/slf4j-api-1.7.20.jar, file:/Users/agorthi/.m2/repository/org/slf4j/jul-to-slf4j/1.7.21/jul-to-slf4j-1.7.21.jar, file:/Users/agorthi/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar, file:/Users/agorthi/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.21/log4j-over-slf4j-1.7.21.jar])
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
at com.sun.jna.Library$Handler.(Library.java:147)
at com.sun.jna.Native.loadLibrary(Native.java:412)
at com.sun.jna.Native.loadLibrary(Native.java:391)
at net.sourceforge.tess4j.util.LoadLibs.getTessAPIInstance(LoadLibs.java:75)
at net.sourceforge.tess4j.TessAPI.(TessAPI.java:42)
at net.sourceforge.tess4j.Tesseract.init(Tesseract.java:368)
at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:281)
at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:213)
at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:197)
at com.paulhammant.ngwebdriver.ImageCracker.crackImage(ImageCracker.java:13)
at com.paulhammant.ngwebdriver.Driver.main(Driver.java:10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant