Re: [Ikvm-developers] Dynamic loading woes (again)
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2007-02-10 09:30:41
|
Michael Kay wrote: > A supplementary question: how can I get hold of a ClassLoader > that searches the Java ClassPath? If you really want to use the CLASSPATH, that's not as trivial unfortunatel= y. You have to manually parse the CLASSPATH and convert the parts to URLs a= nd instantiate a URLClassLoader. The GNU Classpath algorithm that is used to parse the CLASSPATH can be foun= d here: http://cvs.savannah.gnu.org/viewcvs/classpath/java/lang/ClassLoader.java?ro= ot=3Dclasspath&view=3Dmarkup Look for getSystemClassLoaderUrls. Regards, Jeroen |