Re: [Ikvm-developers] Dynamic loading woes (again)
Brought to you by:
jfrijters
|
From: Michael K. <mi...@sa...> - 2007-02-10 10:41:00
|
OK, thanks. I suspect that people who are calling out to Java from XQuery/XSLT when running on .NET are only doing so because they're running stylesheets that contain calls to system classes like System.getProperty() or Date.new(), so I'll probably just leave it so the only classes available are those in GNU classpath, and see if anyone complains. Most of this seems to be working now, and it turns out the remaining problems were my own internal ones rather than external class loading issues. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Jeroen Frijters [mailto:je...@su...] > Sent: 10 February 2007 09:30 > To: Michael Kay; ikv...@li... > Subject: RE: [Ikvm-developers] Dynamic loading woes (again) > > 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 unfortunately. You have to manually parse the > CLASSPATH and convert the parts to URLs and instantiate a > URLClassLoader. > > The GNU Classpath algorithm that is used to parse the > CLASSPATH can be found here: > http://cvs.savannah.gnu.org/viewcvs/classpath/java/lang/ClassL > oader.java?root=classpath&view=markup > > Look for getSystemClassLoaderUrls. > > Regards, > Jeroen |