如何在java中卸载Dll? [英] How to unload Dll in java?

查看:681
本文介绍了如何在java中卸载Dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Lotus Notes 8.5中编写了一个Java代理,以使用
IAIKPKCS11wrapper来重置令牌的PIN。当代理商第一次加载代理时,它工作
罚款。但在我关闭并重新启动代理程序后,它失败了。检查
控制台输出我发现以下错误:

I have written a Java agent in Lotus Notes 8.5 to reset token's PIN using IAIKPKCS11wrapper. When the agent is loaded for the first time it worked fine. But after I close and restart the agent then it failed. Checking the console output I discovered the following error:

线程AgentThread:JavaAgent中的异常
java.lang.UnsatisfiedLinkError:pkcs11wrapper(Library已经加载
另一个ClassLoader)

Exception in thread "AgentThread: JavaAgent" java.lang.UnsatisfiedLinkError: pkcs11wrapper (Library is already loaded in another ClassLoader)

我搜索了该组,但最接近我找到的是,它不是
可能卸载DLL库,但我仍然不知道如何处理
它。

I have searched the group but the closest I could find is that it is not possible to unload the DLL library but I still have no idea how to handle it.

任何人都可以指出我的解决方案?

Can anyone point me the solution?

推荐答案

从一个相关的SO问题中,找到本教程卸载DLL。

From one of the related SO questions, found this tutorial on DLL unloading.

这篇关于如何在java中卸载Dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆