top | item 40305010 (no title) sedro | 1 year ago That's how java.io.File#deleteOnExit works under the hood. The DLL is still loaded at that point and can't be deleted. discuss order hn newest tadfisher|1 year ago Ah, looking through the docs [1]; you have to use your own ClassLoader (so it can be garbage-collected), and statically-link with a JNI library which is unloaded when the ClassLoader is garbage-collected.1: https://docs.oracle.com/en/java/javase/22/docs/specs/jni/inv...
tadfisher|1 year ago Ah, looking through the docs [1]; you have to use your own ClassLoader (so it can be garbage-collected), and statically-link with a JNI library which is unloaded when the ClassLoader is garbage-collected.1: https://docs.oracle.com/en/java/javase/22/docs/specs/jni/inv...
tadfisher|1 year ago
1: https://docs.oracle.com/en/java/javase/22/docs/specs/jni/inv...