Discussion:
[Ikvm-developers] Are there classes that IKVMC will not convert?
Gerard Gagliano
2016-05-09 15:04:15 UTC
Permalink
Hello all,

I am trying to convert a jar to a dll and am running into a problem.

A simple example of the problem I am seeing, is converting a jar like netty-common to a dll. The command:

ikvmc ..\netty-common
jar -target:library

receives some warnings about external classes that I do not need, and I receive no errors.

However, the resulting dll is missing classes that are in the jar. The classes do not refer to any of the external classes identified in the warnings. An example missing class in this jar is MpscLinkedQueue.

Is there a way to get ikvmc to convert all classes?

Any advice is greatly appreciated.

g
--
Jeroen Frijters
2016-05-09 15:25:00 UTC
Permalink
Hi Gerard,

If a class is not converted, it is almost always due to a missing base class or interface.

Regards,
Jeroen
-----Original Message-----
Sent: Monday, May 9, 2016 17:04
Subject: [Ikvm-developers] Are there classes that IKVMC will not
convert?
Hello all,
I am trying to convert a jar to a dll and am running into a problem.
A simple example of the problem I am seeing, is converting a jar like
ikvmc ..\netty-common…jar -target:library
receives some warnings about external classes that I do not need, and I receive no errors.
However, the resulting dll is missing classes that are in the jar. The
classes do not refer to any of the external classes identified in the
warnings. An example missing class in this jar is MpscLinkedQueue.
Is there a way to get ikvmc to convert all classes?
Any advice is greatly appreciated.
g
--
Gerard Gagliano
2016-05-09 15:35:27 UTC
Permalink
Jeroen,

Thanks for the quick response. I had researched every base class (for the example MpscLinkedQueue) and interface it uses. Is there a way to see the error conditions under which the class is discarded?

Thanks!

Regards,
g

--
Post by Jeroen Frijters
Hi Gerard,
If a class is not converted, it is almost always due to a missing base class or interface.
Regards,
Jeroen
-----Original Message-----
Sent: Monday, May 9, 2016 17:04
Subject: [Ikvm-developers] Are there classes that IKVMC will not
convert?
Hello all,
I am trying to convert a jar to a dll and am running into a problem.
A simple example of the problem I am seeing, is converting a jar like
ikvmc ..\netty-common…jar -target:library
receives some warnings about external classes that I do not need, and I
receive no errors.
However, the resulting dll is missing classes that are in the jar. The
classes do not refer to any of the external classes identified in the
warnings. An example missing class in this jar is MpscLinkedQueue.
Is there a way to get ikvmc to convert all classes?
Any advice is greatly appreciated.
g
--
Jeroen Frijters
2016-05-09 15:40:37 UTC
Permalink
If you use the -static option, it should give a better warning.
-----Original Message-----
Sent: Monday, May 9, 2016 17:35
Subject: Re: [Ikvm-developers] Are there classes that IKVMC will not
convert?
Jeroen,
Thanks for the quick response. I had researched every base class (for
the example MpscLinkedQueue) and interface it uses. Is there a way to
see the error conditions under which the class is discarded?
Thanks!
Regards,
g
--
Post by Jeroen Frijters
Hi Gerard,
If a class is not converted, it is almost always due to a missing base
class or interface.
Post by Jeroen Frijters
Regards,
Jeroen
-----Original Message-----
Sent: Monday, May 9, 2016 17:04
Subject: [Ikvm-developers] Are there classes that IKVMC will not
convert?
Hello all,
I am trying to convert a jar to a dll and am running into a problem.
A simple example of the problem I am seeing, is converting a jar like
ikvmc ..\netty-common…jar -target:library
receives some warnings about external classes that I do not need, and
I receive no errors.
However, the resulting dll is missing classes that are in the jar.
The classes do not refer to any of the external classes identified in
the warnings. An example missing class in this jar is
MpscLinkedQueue.
Post by Jeroen Frijters
Is there a way to get ikvmc to convert all classes?
Any advice is greatly appreciated.
g
--
Gerard Gagliano
2016-05-10 00:47:13 UTC
Permalink
Jeroen,

I identified all classes needed, whether they stemmed from unneeded classes or not. I converted all dependent jars individually, and referenced them (-r) on the command line. All conversions completed with no errors and no warnings (both with and without the -static switch).

However, the resulting dll still does not contain all the classes from the jar.

I don’t understand if there’s still something I’ve done wrong.

Thanks again for your help. It’s greatly appreciated.

Regards,
g

--
Post by Jeroen Frijters
If you use the -static option, it should give a better warning.
-----Original Message-----
Sent: Monday, May 9, 2016 17:35
Subject: Re: [Ikvm-developers] Are there classes that IKVMC will not
convert?
Jeroen,
Thanks for the quick response. I had researched every base class (for
the example MpscLinkedQueue) and interface it uses. Is there a way to
see the error conditions under which the class is discarded?
Thanks!
Regards,
g
--
Post by Jeroen Frijters
Hi Gerard,
If a class is not converted, it is almost always due to a missing base
class or interface.
Post by Jeroen Frijters
Regards,
Jeroen
-----Original Message-----
Sent: Monday, May 9, 2016 17:04
Subject: [Ikvm-developers] Are there classes that IKVMC will not
convert?
Hello all,
I am trying to convert a jar to a dll and am running into a problem.
A simple example of the problem I am seeing, is converting a jar like
ikvmc ..\netty-common…jar -target:library
receives some warnings about external classes that I do not need, and
I receive no errors.
However, the resulting dll is missing classes that are in the jar.
The classes do not refer to any of the external classes identified in
the warnings. An example missing class in this jar is
MpscLinkedQueue.
Post by Jeroen Frijters
Is there a way to get ikvmc to convert all classes?
Any advice is greatly appreciated.
g
--
Andrew T. Finnell
2016-05-10 13:24:25 UTC
Permalink
This post might be inappropriate. Click to display it.
Gerard Gagliano
2016-05-10 13:39:00 UTC
Permalink
Jeroen,

Thank you for the guidance and tip.

Andrew, thank you for the offer, but the answer is embarrassingly simple.

The classes are indeed in the dll, their visibility is limited.

My error was in believing that the Visual Studio Object Explorer would show all classes - which it does not. The developer tool ildasm will show all classes in the dll.

Hope this helps others who may see the same.

Regards,
Gerard

--
Post by Jeroen Frijters
Gerard,
Would you mind posting the version of IKVM and the Maven-Style Version of the netty jar? I'd like to try this myself and see if I obtain the same results. You're missing the MpscLinkedQueue class from the resultant Assembly correct?
IKVM: 8.1.5717.0
Netty: io.netty:netty-common:4.0.36.Final
There seems to be a few bug tickets with netty itself and I'm wondering if it's a version issue so I'd like to take a look at the specific version you're using. Thanks!
You'll have my personal email so you can reach me on Hangouts if needed. I also see your Stackoverflow question which we can use to communicate as well.
Regards,
Andrew T. Finnell
-----Original Message-----
Sent: Monday, May 9, 2016 8:47 PM
Subject: Re: [Ikvm-developers] Are there classes that IKVMC will not convert?
Jeroen,
I identified all classes needed, whether they stemmed from unneeded classes or not. I converted all dependent jars individually, and referenced them (-r) on the command line. All conversions completed with no errors and no warnings (both with and without the -static switch).
However, the resulting dll still does not contain all the classes from the jar.
I don’t understand if there’s still something I’ve done wrong.
Thanks again for your help. It’s greatly appreciated.
Regards,
g
--
Post by Jeroen Frijters
If you use the -static option, it should give a better warning.
-----Original Message-----
Sent: Monday, May 9, 2016 17:35
Subject: Re: [Ikvm-developers] Are there classes that IKVMC will not convert?
Jeroen,
Thanks for the quick response. I had researched every base class
(for the example MpscLinkedQueue) and interface it uses. Is there a
way to see the error conditions under which the class is discarded?
Thanks!
Regards,
g
--
Post by Jeroen Frijters
Hi Gerard,
If a class is not converted, it is almost always due to a missing base
class or interface.
Post by Jeroen Frijters
Regards,
Jeroen
-----Original Message-----
Sent: Monday, May 9, 2016 17:04
Subject: [Ikvm-developers] Are there classes that IKVMC will not
convert?
Hello all,
I am trying to convert a jar to a dll and am running into a problem.
A simple example of the problem I am seeing, is converting a jar
ikvmc ..\netty-common…jar -target:library
receives some warnings about external classes that I do not need,
and I receive no errors.
However, the resulting dll is missing classes that are in the jar.
The classes do not refer to any of the external classes identified
in the warnings. An example missing class in this jar is
MpscLinkedQueue.
Post by Jeroen Frijters
Is there a way to get ikvmc to convert all classes?
Any advice is greatly appreciated.
g
--
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Ikvm-developers mailing list
https://lists.sourceforge.net/lists/listinfo/ikvm-developers
Loading...