首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >UnsatisifiedLinkError -有关于如何修复这个问题的想法吗?

UnsatisifiedLinkError -有关于如何修复这个问题的想法吗?
EN

Stack Overflow用户
提问于 2012-04-29 06:28:20
回答 2查看 1.4K关注 0票数 4
代码语言:javascript
复制
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: com.melloware.jintellitype.JIntellitypeException: Could not load JIntellitype.dll from local file system or from inside JAR
    at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:114)
    at com.melloware.jintellitype.JIntellitype.getInstance(JIntellitype.java:174)
    at CaptureScreen.registerHotkeys(CaptureScreen.java:163)
    at CaptureScreen.<init>(CaptureScreen.java:100)
    at CaptureScreen.main(CaptureScreen.java:199)
    ... 5 more
Caused by: java.lang.UnsatisfiedLinkError: C:\Users\B\AppData\Local\Temp: Can't find    dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:99)
    ... 9 more

当我从命令行运行时,我得到了这个错误,但是,它不会导致我的程序在我的机器上运行的任何问题,但是,在其他人的机器上,程序将根本不会运行。

我以前从来没有遇到过这个错误,并且相当困惑。大多数情况下,它在我的机器上运行得很好,但在其他机器上运行得不好,尽管它在两台机器上都抛出了这个错误。

EN

回答 2

Stack Overflow用户

发布于 2012-04-29 06:41:06

这是一个类路径错误。很可能你已经将它设置为编译时,而不是运行时。确保jar位于正确的位置和/或已将类路径设置为包含该jar。

票数 1
EN

Stack Overflow用户

发布于 2012-04-29 07:49:45

在生成项目后,转到Jintellitype类型网站,下载源代码,将其添加到下载文件夹中,然后将.dll文件移动到包含Jitellitype类的文件夹中

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10368114

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档