How to unload JVM from a living process?

Posted by Guy on Stack Overflow See other posts from Stack Overflow or by Guy
Published on 2010-06-06T13:35:27Z Indexed on 2010/06/06 13:42 UTC
Read the original article Hit count: 159

Filed under:
|
|
|

Hi,

I'm working with JNI and trying to unload (destroy) the VM using DestoryJavaVM function (I first call DetachCurrentThread method). It seems like the it has now influence on the VM and it is still up after the call. I read in old Sun posts that DestoryJavaVM had problems in the past (JDK1.1-1.3 in 2001) but I'm using JRE 6 and it probably should work now, right? I need to Load\Unload a VM in the same living process since each loading requires another classes to load. Any ideas how it can be done?

Thanks, Guy

© Stack Overflow or respective owner

Related posts about java

Related posts about jvm