Changing ClassPath
In C++, I Start a JVM with an CLASSPATH.
But during the life of my Application, I want to access a class, who's not in the original CLASSPATH.
I can't stop my App, and restart.
I wont to add my new jar in the classpath.
If I use System.SetProperty( "java.class.path", .....); The JVM doesn't reload it.
Help!
[363 byte] By [
SANCERRY] at [2007-9-26 13:00:12]

You can't replace an existing jar once java has accessed it.
To load a class it must be found via
-The classpath on start up. The class path can not be changed after start up.
-In the 'ext' directroy.
-Via a user defined class loader.
The only way to 'reload' a class is to create your own class loader. For each 'reload' you get rid of all of the old instances and then create a new class loader. Search the forums for specific examples.