----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

I'm working on an internet application that needs to dynamically reload
classes.  The classes can be rewritten on-the-fly and so must be recompiled
and reloaded during runtime.  I've read that in JDK 1.2 they've settled on
making bootstrap-loaded classes non-unloadable and that the route to go is
to create a custom class loader.  To unload the classes just blow away the
custom class loader used to load them.  I've tried this and my classes
aren't unloading.  I do attempt to 'force' the garbage collection of the
custom class loader by setting it equal to null when I'm finished with it.
However, the class is somehow staying resident anyway.  Is it possible that
I'm implementing the custom class loader wrong?  Is my custom class loader
calling upon the bootstrap class loader by default thereby making it
unloadable?  What is the simplest form of a custom class loader that will
let me destroy it and blow away it's classes?

Thanks!
- Kevin



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to