[jsword-devel] ClassUtil and Java extension mechanism ClassNotFoundException
Tonny Kohar
tonny.kohar at gmail.com
Wed May 7 21:44:03 MST 2008
Hi,
Is it possible to change the implementation of
Class.forName("SomeClass") in org.crosswire.common.util.ClassUtil to
from
Class impl = Class.forName("some.package.SomeClass"); // replace this with
ClassLoader cl = Thread.currentThread().getContextClassLoader(); // this
Class c = cl.loadClass("some.module.Class");
It is because Class.forName have various issues with Java extension
mechanism and most often it will end up with ClassNotFoundException.
For more detail regarding Class.forName problem, please look at this
pdf http://www.javageeks.com/Papers/ClassForName/ClassForName.pdf
Cheers
Tonny Kohar
--
Alkitab Bible Study
imagine, design, create ...
http://www.kiyut.com
More information about the jsword-devel
mailing list