Re: [Ikvm-developers] Loading file resources from the classpath
Brought to you by:
jfrijters
|
From: James E. <jam...@gm...> - 2013-11-26 07:15:13
|
Mark Rowell <Mark.Rowell <at> creditex.com> writes: > > > Not to worry – I saw necessary info on the Wiki > > From: Mark Rowell [mailto:Mark.Rowell <at> creditex.com] Sent: 20 December 2010 16:33To: ikvm-developers <at> lists.sourceforge.netSubject: [Ikvm- developers] Loading file resources from the classpath > > > Hi > > So I have my stuff compiling and starting under the new IKVM version – my Java code uses Spring and that expects > To be able to load resources (XML config mainly) from the classpath. > > This used to work, but now I get a failure when Spring tries to load from the classpath. These resources are in the Jars that I convert using IKVMC – are there now steps to take to get .Net/IKVM to “see” these resources? > > Thanks > > Creditex Brokerage LLP ("CB LLP") is authorised and regulated by the Financial Services Authority (firm registration number 441360). CB LLP is registered in England and Wales with company number OC315800 and the registered address is at PATERNOSTER HOUSE, 3RD FLOOR, 65 ST PAUL'S CHURCHYARD, LONDON, EC4M 8AB. > > > -------------------------------------------------------------------------- ---- > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > > _______________________________________________ > Ikvm-developers mailing list > Ikvm-developers <at> lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > I would sure like to know the answer. I can't see what Mark did to resolve this. I have basically the same problem. Spring tries to load a resource and can't find it. It works OK in a toy console app I wrote that has a hard reference to my IKMVC'd assembly. However in the real application I have to load the IKVMC'd assembly dynamically at runtime using Assembly.Load(). For some reason when I do this, the resources cannot be found. |