gpt4 book ai didi

java - 将 native DLLS 添加到 Java 运行时 (JIntellitype) 时出现问题

转载 作者:行者123 更新时间:2023-11-30 11:17:13 25 4
gpt4 key购买 nike

我正在尝试让 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但我根本无法得到它来帮助我。

最佳答案

嗯,我不完全确定为什么,但我决定安装 Java x64,将我的环境切换到 64 位并使用 64 位 DLL,它现在可以完美运行。我想 ~magic~ 发生了 :-/

关于java - 将 native DLLS 添加到 Java 运行时 (JIntellitype) 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24481260/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com