我試圖讓JIntellitype與我的Java應用程序的功能,但我在下面的異常堅持:問題添加原生DLL文件的Java運行時(JIntellitype)
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的代碼 – MadProgrammer
我只是使用JIntellitype庫...所以沒有自定義代碼運行,只是示例代碼基本上:https://code.google.com/p/jintellitype/ – Chris