Re: IKVM.NativeCode.java.lang.Class.forName0 package name interop
Jeroen Frijters <[email protected]>
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Jason, The package name is not relevant to the problem. Please read the FAQ for about this issue: http://sourceforge.net/apps/mediawiki/ikvm/index.php?title=FAQ#I_receive_a_ClassNotFoundException.3F Regards, Jeroen > -----Original Message----- > From: Jason Harrop [mailto:[email protected]] > Sent: Thursday, February 27, 2014 8:35 > To: [email protected] > Subject: [Ikvm-developers] IKVM.NativeCode.java.lang.Class.forName0 > package name interop > > Hi Jeroen & all, > > I have Java code: > > Class<?> xhtmlImporterClass = > Class.forName("org.docx4j.convert.in.xhtml.FSColorToHexString"); > > Note the unfortunate choice of package name, which includes the C# > reserved word "in". > > When run as a DLL, I get: > > java.lang.ClassNotFoundException: > org.docx4j.convert.in.xhtml.FSColorToHexString > > at IKVM.NativeCode.java.lang.Class.forName0(Unknown Source) > at java.lang.Class.forName(Class.java:287) > > As a test I tried changing the Java code to: > > Class<?> xhtmlImporterClass = > Class.forName("[email protected]"); > > but this doesn't help: > > java.lang.ClassNotFoundException: > [email protected] > at IKVM.NativeCode.java.lang.Class.forName0(Unknown Source) > at java.lang.Class.forName(Class.java:287) > > Any suggestions (short of changing the package name)? > > thanks .. Jason > > ------------------------------------------------------------------------ > ------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.cl > ktrk > _______________________________________________ > Ikvm-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ikvm-developers ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk