Re: IKVM.NativeCode.java.lang.Class.forName0 package name interop

Jason Harrop <[email protected]>
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <CAM-hvXc9WTVieYYH7LORCZB=tzCzfmywFjG-JBex3Ro7_OLAYQ@mail.gmail.com>
Hi Jeroen

Thanks for that.  You're right of course ...

The following fixed the issue:

            ikvm.runtime.Startup.addBootClassPathAssembly(
                System.Reflection.Assembly.GetAssembly(
                    typeof([email protected])));

thanks again .. Jason


On Thu, Feb 27, 2014 at 7:06 PM, Jeroen Frijters <[email protected]> wrote:
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.