javamavenservletsjacobmaven-dependency

Issue in accessing jacob-1.18-x86.dll at run time


Problem in resolving jacob-1.18-x86.dll , it cannot accessed at run time while i can successfully compile program.

SEVERE: Servlet.service() for servlet dispatcher threw exception
    java.lang.UnsatisfiedLinkError: no jacob-1.14.3-x64 in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at com.jacob.com.LibraryLoader.loadJacobLibrary(LibraryLoader.java:184)
        at com.jacob.com.JacobObject.<clinit>(JacobObject.java:108)

Maven dependency is :

<dependency>
    <groupId>net.sf.jacob-project</groupId>
    <artifactId>jacob</artifactId>
    <version>${jacob.version}</version>
</dependency>

<dependency> 
    <groupId>net.sf.jacob-project</groupId> 
    <artifactId>jacob</artifactId> 
    <version>1.14.3</version> 
    <classifier>x64</classifier> 
    <type>dll</type> 
</dependency> 

Solution

  • Have you put JACOB .dll files into your runtime library path? E.g. in the folders:

    /Java/jdk/jre/bin

    and

    /Java/jdk/jre/lib/ext/jacob-1.18