Posted on 1999-01-26
If I load two classes A and B with the method
Class.forName("Classname"), first class A and then class B
will then the Classloader of a browser load class A again
because it is used by class B.
If tried to load classes with the method loadClass from
the abstract class Classloader.
Within the applet I've got the browsers Classloader with
Classloader loader = getClass().getClassLoader()
but when I've tried to use loader.loadClass("Classname")
I've got the compilation error
there is now method loadClass(String) defined in Classloader. I don't won't to subclass Classloader, just
using the loadClass-method of the browsers Classloader.
I am doing the whole thing, because I want to track the
loading of the classes my applet uses. If there is another
solution or if you know what I am doing wrong let me know.