[Opensource] Why can't find class
com.jcorporate.expresso.core.security.filters.ISO_8859_1?
Michael Rimov
rimovm at centercomp.com
Sat Jul 27 01:57:40 PDT 2002
At 02:23 PM 7/26/2002 +0800, you wrote:
>Hi,
>
>How to load a class in jdk1.3 ?
>FilterManager can't be compile after replace Class.forName() with
>Thread.getCurrentThread().getClassLoader().loadClass()
>Thread only have currentThread(), but no getClassLoader() method, Can I
>use ClassLoader.getSystemClassLoader() to get a classLoader ?
Sorry, my bad when running off the top of my head. It's really:
ClassLoader cl = this.getClass().getClassLoader();
if (cl != null) {
cl.loadClass(className);
}
Note that an object's classloader may or may not be null.
HTH!
-Mike
More information about the Opensource
mailing list