I am trying to build a custom FileClassLoader because I need to unload a dll at a certain point in my application. I instantiate the class loader has follows:
public class FileClassLoader extends ClassLoader {
private Map<String, Class<?>> classes;
public FileClassLoader() {
super(FileClassLoader.class.getClassLoader());
classes = new HashMap<String, Class<?>>();
}
.......
}
But when I check the size of the classes HashMap it is zero. The classes are packaged in a jar, and the application (which runs fine) is an applet. Prior to trying to add this custom class loader, the application was working properly so what am I doing wrong?
Thank you,
Elliott