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

Paul Chambre <[email protected]> Thu, 10 Nov 2016 13:49:00 -0700
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <CAJwVo5EYuzd-RbRhRGeTK=VNLWPuti9EfKWEBgynZ3QfM1RChw@mail.gmail.com>
Our application, so far, is specific to one Java implementation. In this
case, we're calling into the selectors to modify their fields collections
to reduce garbage generated by the selectors' iterators.

Is there something I can look at at runtime, like java.vendor, to
distinguish that I'm running under ikvm and maybe skip this (and probably
other) optimizations?

On Thu, Nov 10, 2016 at 1:31 PM, Volker Berlin <[email protected]
> wrote:

> Hi Paul,
>
> Why you call this? This is specific to one Java implementation. This is a
> private class of the Oracle JDK. This will not work with IKVM. IKVM use the
> implementation of the .NET framework for IO operations.
>
> Volker
>
>
> The odd thing is that, shortly before the failing call, we call:
>
> Class<?> selectorImplClass=Class.forName("sun.nio.ch.SelectorImpl");
> Require.instanceOf(selector, "selector", selectorImplClass);
>
> and that suceeeds.
>
>
>
>
> ------------------------------------------------------------
> ------------------
> 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
>
>


-- 
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