jacob download contains jar package and src

The jacob download includes jar packages and src
blog categories:
 
jacob
jacob 
 
download
http://sourceforge.net/projects/jacob-project/files/
 
After decompression, three files are
obtained jacob.jar
jacob-1.17-x64.dll
jacob-1.17-x86 .dll
 
jacob.jar is placed in the lib directory of the project
win7
jacob-1.17-x64.dll is placed in C:\Windows\System32
jacob-1.17-x86.dll is placed in C:\Windows\SysWOW64
 
Win7 is designed like this, System32 is placed 64-bit dll, SysWOW64 put 32-bit dll, is not very strange.
Also note that a 32-bit JDK can only load 32-bit DLLs, and a 64-bit JDK can only load 64-bit DLLs, which are not compatible with each other.
 
You can also put jacob-1.17-x86.dll under jdk/jre/bin.
 
If the one I choose cannot find jacob.dll, it will report the following error
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jacob- 1.17-x86 in java.library.path
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
 at java.lang.Runtime.loadLibrary0(Runtime.java:823)
 at java.lang.System.loadLibrary(System.java:1028)
 at com.jacob.com.LibraryLoader.loadJacobLibrary(LibraryLoader.java:184)
 at com. jacob.com.JacobObject.<clinit>(JacobObject.java:107)
 at MsWordEdit.<init>(MsWordEdit.java:25)
 at MsWordEdit.main(MsWordEdit.java:642)
 
If java.library.path is not clear, output Just one click. The code is as follows
System.out.println(System.getProperty("java.library.path"));
 
Example:
Java to operate jacob of Microsoft Word
http://xiaoduan.blog.51cto.com/502137/136692/Use
Jacob to output word Documentation
http://clq9761.iteye.com/blog/1284318

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326425238&siteId=291194637