Re: java -jar works, but ikvm -jar fails to find dependencies

Paul Chambre <[email protected]> Thu, 10 Nov 2016 11:43:39 -0700
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <CAJwVo5Ev0SzWAZO35cz38M2djyFR_Q4+grDB9w7CcxSS=WCqrw@mail.gmail.com>
By the way, the failure to find the class is being initated by
Class.forName().

I also tried extracting rt.jar and adding the extracted path to -cp. That
didn't help either.

On Wed, Nov 9, 2016 at 1:07 PM, Paul Chambre <[email protected]>
wrote:

> Hi folks,
>
> I'm trying to convert a jar to a dll, but that's failing to
> load/initialize. To narrow down the problem, I tried running the jar from
> java and from ikvm.
>
> I have to pass a number of -D properties to the jvm to run the jar. I put
> these into a batch file and made two copies... one using java and the other
> using ikvm. The java version runs correctly, but the ikvm version fails
> with class not found exceptions for core runtime items from rt.jar (e.g.
> sun.nio.ch.WindowsSelectorImpl).
>
> The ikvm version is 8.1.5717.
> The JRE version is 1.8.0_60.
>
> I am running in my C# app's bin\debug directory, with all of the jar
> files, and all of the ikvm bin files, copied locally. Copying rt.jar
> locally did not make a difference.
>
> Thanks,
> Paul
>



-- 
Paul Chambre

Senior Solutions Architect
(719) 465-6097

Illumon - Big Value From Big Data

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi

_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers