Re: [Ikvm-developers] Loading file resources from the classpath
Brought to you by:
jfrijters
|
From: James E. <jam...@gm...> - 2013-11-27 00:14:01
|
> 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.
>
> --------------------------------------------------------------------------
----
I got this working. The key was to add a call to
ikvm.runtime.Startup.addBootClassPathAssemby
var myAssembly = Assembly.Load(new AssemblyName("IKVMdAssembly"));
ikvm.runtime.Startup.addBootClassPathAssemby(myAssembly);
|