JIntellitype使用出错

符千青 2016-03-14 07:01:23
我下了JIntellitype第三方包,但是使用之后却出错
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 QuickAll.AllView.<init>(AllView.java:49)
at QuickAll.AllView.main(AllView.java:35)
Caused by: java.io.IOException: FromJarToFileSystem could not load DLL: com/melloware/jintellitype/JIntellitype64.dll
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:150)
at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:109)
... 3 more
Caused by: java.io.IOException: Could not delete file: C:\Users\ADMINI~1\AppData\Local\Temp\JIntellitype64.dll
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:138)
... 4 more

我导入了jar包,同时在工程下建了一个com.melloware.jintellitype包,里面放了两个dll文件,我在jre和system32里都放了这两个文件,以前用的时候没有错,后来重装电脑后就不能用了,但是用到了这个的exe文件能正常使用。
// 第一步:注册热键,第一个参数表示该热键的标识,第二个参数表示组合键,如果没有则为0,第三个参数为定义的主要热键
JIntellitype.getInstance().registerHotKey(1, JIntellitype.MOD_CONTROL,
(int) 'S');

// 第二步:添加热键监听器
JIntellitype.getInstance().addHotKeyListener(new HotkeyListener() {
public void onHotKey(int markCode) {
AllView.this.setVisible(true);
}
});
...全文
959 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
java_eehehe 2019-05-08
  • 打赏
  • 举报
回复
Exception in thread "main" 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 com.bjlemon.automsg.Application.<init>(Application.java:50)
at com.bjlemon.automsg.Application.main(Application.java:29)
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)
... 3 more
Caused by: java.lang.NullPointerException
at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:146)
... 4 more

请问这个问题是什么呢

chuanhui_1221 2016-11-28
  • 打赏
  • 举报
回复
这是因为你已经有一个程序在用了,然后另一个程序注册时就会报这个错,我这边是直接改的他们的源码,不过还是有个问题还没解决就是热键冲突问题,我们做的是即时通讯,当登陆多个用户时只有第一个用户才会响应。把JIntellitype类的源码修改如下:
符千青 2016-03-15
  • 打赏
  • 举报
回复
引用 1 楼 qq_28224387 的回复:
windows下的东西不太懂,但看你发的贴,问题已经很清楚了:异常首先先抛出不能删除你用户目录下的dll库文件
Could not delete file: C:\Users\ADMINI~1\AppData\Local\Temp\JIntellitype64.dll
然后你的开发环境又尝试区加载本地系统的dll,和jar包中的dll、
Could not load JIntellitype.dll from local file system or from inside JAR
最后你的Intell没能找到这个JIntellitype64.dll
FromJarToFileSystem could not load DLL: com/melloware/jintellitype/JIntellitype64.dll
你找找看你的Jar包里有没有JIntellitype64.dll看看, jar -tvf... | grep 'JIntellitype***" JIntellitype64.dll,64位的dll,windows好像有个兼容性设置,你是32位的cpu却区好64为的dell, 是不是你把快捷键的兼容性设置改变了。
jar包没有问题,以前可以用的时候也是这个包,而且我32位和64位的dll都有。 windows的快捷键兼容性怎么设置?
  • 打赏
  • 举报
回复
windows下的东西不太懂,但看你发的贴,问题已经很清楚了:异常首先先抛出不能删除你用户目录下的dll库文件
Could not delete file: C:\Users\ADMINI~1\AppData\Local\Temp\JIntellitype64.dll
然后你的开发环境又尝试区加载本地系统的dll,和jar包中的dll、
Could not load JIntellitype.dll from local file system or from inside JAR
最后你的Intell没能找到这个JIntellitype64.dll
FromJarToFileSystem could not load DLL: com/melloware/jintellitype/JIntellitype64.dll
你找找看你的Jar包里有没有JIntellitype64.dll看看, jar -tvf... | grep 'JIntellitype***" JIntellitype64.dll,64位的dll,windows好像有个兼容性设置,你是32位的cpu却区好64为的dell, 是不是你把快捷键的兼容性设置改变了。

62,636

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧