Re: Load non-Java resources into Java code
Jeroen Frijters <[email protected]>
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Michael, The official way is to apply the IKVM.Attributes.JavaResourceAttribute custom attribute to your assembly. Note that the right class loader (i.e. the assembly clas loader) still needs to be used to load the resource. Here's how you use it. You have to specify both the Java name and the .NET name: [assembly: JavaResourceAttribute(javaName, resourceName)] Regards, Jeroen > -----Original Message----- > From: Michael Wegge [mailto:[email protected]] > Sent: Wednesday, August 20, 2014 18:08 > To: [email protected] > Subject: [Ikvm-developers] Load non-Java resources into Java code > > Hello, > > In this post > (http://permalink.gmane.org/gmane.comp.java.ikvm.devel/3546), > Jeroen mentioned a way to make non-Java resources visible to Java code. > Currently, this moethod still works, but Jeroen mentioned he might take > care of this in a future development. > > Does anyone have an idea whether this feature has been added at this > moment? > > Kind regards, > Michael > > > ------------------------------------------------------------------------ > ------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > Ikvm-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ikvm-developers ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/