解决jacob-1.18-x86.dll时出现问题,在运行时无法访问
我可以成功地编译程序。
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>
<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>
最佳答案
您是否已将JACOB .dll文件放入运行时库路径?
例如。在文件夹中:
/ Java / jdk / jre / bin
和
/Java/jdk/jre/lib/ext/jacob-1.18