Re: ServiceLoader not working after compiling the jar to a DLL
Jeroen Frijters <[email protected]> Wed, 20 Jul 2016 15:08:16 +0000
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Venkat, ServiceLoader is supported, but the class loader needs to know about the DLL. You can try using ikvm.runtime.Startup.addBootClassPathAssembly() to add your DLL to the boot class loader. Regards, Jeroen From: Venkateswarlu Yerramalli [mailto:[email protected]] Sent: Wednesday, July 20, 2016 14:24 To: [email protected] Subject: [Ikvm-developers] ServiceLoader not working after compiling the jar to a DLL Hi, I have a jar file from a java project and am trying to use this in a .NET project. I am successful in using ikvmc to create a dll out of the jar and when I try to call the methods it fails with a System.NullReferenceException. The method where this exception is originating relies on the java ServiceLoader to load provider implementation and the implementations are also packaged as part of the same jar that was used for creating the DLL. Is serviceLoading supported when compiled to a DLL? If so how do I use it? Thanks, Venkat ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers