Yeah, the JNI unload does not work correctly. I thought I had documented this somewhere, but can’t find it now.
This is one of the reasons why the init is not called by default on module load – the user needs to call it explicitly. This allows you to set the required classpath before the JVM loads, since once loaded, you cannot unload it till the process restarts.
Hope this helps.
Avik