How to unload library (DLL) from the JVM

前端 未结 1 689
庸人自扰
庸人自扰 2020-11-30 05:51

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

相关标签:
1条回答
  • 2020-11-30 06:18

    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
    0 讨论(0)
提交回复
热议问题