How to Unload Class from VM

You have a package having 2 classes. These are standalone applications. Both the class represents frames. Parent and Child. You run the application. From the parent u display the child. Now when the appln is running, remove or change the child Class. The appln still runs. I want to unload the child class from the vm and reload it again with the fresh changes without restarting ti. I did come accross JVMPI with the jobjectID and class_unload. But these things lost me. Help me on this.

[502 byte] By [ambarish_v_vaidya] at [2007-9-26 8:26:28]
# 1
>I want to unload the child class from the vm and reload it again with the fresh changes without restarting it.Common pratice is to use a class loader. Search the forums for URLClassLoader for examples and discussion.
jschell at 2007-7-1 19:03:44 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
> Common pratice is to use a class loader. Search the> forums for URLClassLoader for examples and discussion.It does not work. I cannot remove the initial class from the VM. How do I communicate to the VM to tell him to remove the class.
ambarish_v_vaidya at 2007-7-1 19:03:44 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

>I cannot remove the initial class from the VM.

Don't load it using the system class loader. Always use a class loader. Although actually those are different classes - the class loaded by the class loader is not the same as the one loaded by another class loader, even if the bytecodes are exactly the same.

jschell at 2007-7-1 19:03:44 > top of Java-index,Java HotSpot Virtual Machine,Specifications...