I have written a small Java web server. I want to delete (replace) a class that
JavaFAQ Home » General Java
Question: I have written a small Java web
server. I want to delete (replace) a class that was loaded with
Class.forName( "name" ).
I have not found a way to do that. Each time I get my
Answer: You need to replace the
Class.forName() with ClassLoader.loadClass() and instantiate a new ClassLoader
every time you need a new version of an existing class.
Printer Friendly Page
Send to a Friend
Search here again if you need more info!