java卸载dll,如何在java中卸载Dll?[通俗易懂]

java卸载dll,如何在java中卸载Dll?[通俗易懂]IhavewrittenaJavaagentinLotusNotes8.5toresettoken’sPINusingIAIKPKCS11wrapper.Whentheagentisloadedforthefirsttimeitworkedfine.ButafterIcloseandrestarttheagentthenitf…

大家好,又见面了,我是你们的朋友全栈君。

java卸载dll,如何在java中卸载Dll?[通俗易懂]

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:

Exception in thread “AgentThread: JavaAgent”

java.lang.UnsatisfiedLinkError: pkcs11wrapper (Library is already loaded in

another ClassLoader)

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?

解决方案

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/144630.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号