How to clear old class files cached in JVM

JVM stores old class files in its cache even after the corresponding files have been deleted from the database. This causes a conflict if a new file is saved with the same name as one that was deleted earlier causing old data to be fetched and not the new one.

am using the following line of code to load the class file :

Class.forName(className, false, this.getClass().getClassLoader())

please help

Thanks - N

[450 byte] By [gettinGeekeda] at [2007-11-27 5:29:36]
# 1
This type of thing is done by app servers all the time for jsp files. Typically they achieve reloading of classes by using a custom class loader.
Caffeine0001a at 2007-7-12 14:52:57 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
> This type of thing is done by app servers all the> time for jsp files. Typically they achieve reloading> of classes by using a custom class loader.Could you post any sample code plz ?
gettinGeekeda at 2007-7-12 14:52:57 > top of Java-index,Java HotSpot Virtual Machine,Specifications...