【发布时间】:2014-06-29 23:44:33
【问题描述】:
我正在尝试让 JIntellitype 与我的 java 应用程序一起运行,但我遇到了以下异常:
Exception in thread "AWT-EventQueue-0" 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:177)
at marketbot.SettingsWindow.<init>(SettingsWindow.java:27)
at marketbot.MarketBot$2.run(MarketBot.java:129)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.io.IOException: FromJarToFileSystem could not load DLL: com/melloware/jintellitype/JIntellitype.dll
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:150)
at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:105)
... 17 more
Caused by: java.lang.NullPointerException
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:146)
... 18 more
我在任何地方都有 DLL(老实说,我已经把它们放在了我能想象到的所有地方),但我仍然无法让它工作。它今天早些时候工作,但在计算机重新启动后,我现在再次收到此错误。
我使用netbeans,所以我将JIntellitype JAR添加到项目库中,并且我在C:\ Windows \ System,主项目文件夹,src文件夹,dist文件夹,lib文件夹,java jdk jre bin文件夹中有DLLS(所有其他 dll 所在的位置),似乎没有什么可以让它工作。
有人有什么想法吗?
在我的谷歌任务中,我确实遇到了https://code.google.com/p/jintellitype/issues/detail?id=12&can=1&colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary,但我根本无法帮助我。
【问题讨论】:
-
您可能还需要提供尝试加载 DLL 的代码
-
我只是在使用 JIntellitype 库......所以没有运行自定义代码,基本上只是示例代码:code.google.com/p/jintellitype