jacob.jar1.19及使用方法
jacob.jar1.19及使用方法 解压后获得3个文件 jacob.jar jacob-1.17-x64.dll jacob-1.17-x86.dll jacob.jar 放到项目的lib目录 win7 jacob-1.17-x64.dll 放到C:\Windows\System32 jacob-1.17-x86.dll 放到C:\Windows\SysWOW64 win7就是这么设计的, System32放64位dll,SysWOW64放32位dll,是不是很诡异。 还要注意的是,32位JDK只能加载32位DLL,64位JDK只能加载64位DLL,不能互相兼容。 还可以把jacob-1.17-x86.dll 放到jdk/jre/bin下,我选的这个 若找不到jacob.dll,会报如下错误 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) 如果不清楚java.library.path,输出一下即可。代码如下 System.out.println(System.getProperty("java.library.path"));
- 1
- 草丛里面有惊喜2021-03-30感谢分享,找了好久
- weixin_454162092020-07-09挺好的,好用很方便
- 小小叔2019-07-08可以使用,就是转码有限制
- heartsdream20082019-08-29挺好,感谢分享
- 粉丝: 126
- 资源: 11
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助