Jacob.jar找不到jacob-1.18-x86.dll [英] Jacob.jar cannot find jacob-1.18-x86.dll

查看:256
本文介绍了Jacob.jar找不到jacob-1.18-x86.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写使用autohotkey的Java代码,特别是autoitx4java实现。我有导入
import java.text.SimpleDateFormat;
import java.util.Date;
import autoitx4java.AutoItX;

除了在构建路径中添加了Jacob.jar,AutoItX4Java.jar和sqljdbc4.jar(sql jdbc用于代码的其他部分) )。由于链接错误不满意,它无法编译:

I am trying to write Java code that uses autohotkey, specifically the autoitx4java implementation. I have the imports import java.text.SimpleDateFormat; import java.util.Date; import autoitx4java.AutoItX; As well as have added Jacob.jar, AutoItX4Java.jar and sqljdbc4.jar in the build path (sql jdbc is for other parts of the code). It doesn't compile because of an unsatisfied link error:

线程main中的异常java.lang.UnsatisfiedLinkError:no jacob-1.18- java.library.path中的x86
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System。 loadLibrary(未知来源)
at com.jacob.com.LibraryLoader.loadJacobLibrary(LibraryLoader.java:184)
at com.jacob.com.JacobObject。< clinit>(JacobObject.java:110)
at autoitx4java.AutoItX。< init>(AutoItX.java:181)
at MainTest.login(MainTest.java:126)
at MainTest.setadmin(MainTest.java:181)
at MainTest.runbasic(MainTest.java:21)
at MainTest.main(MainTest.java:15)

我在system32文件夹中有jacob-1.18-x86.dll(Windows 8.1是操作系统)以及jacob-1.18-x64.dll和jacob-1.18-M3-x64.dll,以防万一它想要使用64位dll。我尝试将C:/ Windows / System32添加到某个网站的jacob.jar本地库位置(使用eclipse),但这不起作用。其他一些网站建议把dll放在C:\Program Files \ Java \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\此代码用于在不同的机器上工作,但现在由于链接不满意而无法编译。我无法弄清楚在哪里放jacob-1.18-x86才能找到它。

I have the jacob-1.18-x86.dll in the system32 folder (windows 8.1 is the OS) as well as jacob-1.18-x64.dll and jacob-1.18-M3-x64.dll, just in case it wanted to use the 64 bit dll. I tried adding C:/Windows/System32 to the jacob.jar "Native library location" (using eclipse) from some website, but that didn't work. Some other site suggested putting the dll in the C:\Program Files\Java\jre7\bin folder, so I did that, but it still throws the error. This code used to work on a different machine, but now it won't compile because of the unsatisfied link. I can't figure out where to put the jacob-1.18-x86 to get it to find it.

推荐答案

好吧,复制了它进入C:\Program Files(x86)\ Java [\\ jre1.8.0_65 \ bin文件夹并且它有效。显然它只适用于jacob dll。

Well, copied it into the "C:\Program Files (x86)\Java\jre1.8.0_65\bin" folder and it worked. Apparently it only looks there for the jacob dll's.

这篇关于Jacob.jar找不到jacob-1.18-x86.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆