How to unload library (DLL) from java JVM

扶醉桌前 提交于 2019-12-17 07:26:42

问题


I need to unload a DLL that was loaded with System.loadLibrary(..), anyone know if this is possible?


回答1:


I don't have any experience of this, but a bit of digging shows that the library should be unloaded when the classloader which loaded the library is garbage collected.

Links:

  • Invocation API docs (Sun) - look for "Library and Version Management"
  • Java JNI DLL Unloading tutorial


来源:https://stackoverflow.com/questions/453359/how-to-unload-library-dll-from-java-jvm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!