8/31 I'm writing a JNI application through the invocation interface.
(C calling Java through the JNI.) When I'm done with it, I would
like the JVM to be destroyed, and before destruction, I want a
static method (unload) to be called on each class once for each
class. Does anyone know how to do this?
\_ Been a while, but look up :
JNI DetachCurrent-Thread() and DestroyJavaVM()
in the JNI docs. At least that's what the java executable
wrapper does when it exits. As for calling static destroy
methods in the classes, I believe you might have to do that
manually. |