Re: Compiler Warnings from ikvmc
Anil Peres-Da-Silva <[email protected]> Tue, 27 Sep 2016 13:33:06 +0000
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <177BCD890CD48649B2E46FD18EFB8B07016433D6CF@prvxmb02.microfocus.com> |
Thank you Andrew, >> Are you able to share the top level project or is it in-house? I’m afraid not. It’s all closed source. fwiw, our solution uses what we call a core-edge strategy, The core code is a ui free service layer that uses java 2.0 syntax, cross compiles it over into j#, and then uses reflection on the j# assemblies to produce c# The edge code is a set of ‘interfaces’, each with a parallel java / .Net implementation. The edge implementations have no constraints on language capability or features. (but represent less than 5% of our total code) But because of the J# constraint, we are bound to .NET 2.0 for now… We intend to move away from this strategy by 2017, which is when J# support ends officially. So far, ikvm has come up as our best bet. I’m just doing some early exploration, to decide whether we could take our existing java .jar’s in toto as the .NET assembly source or whether we’d need to introduce a slightly different core-edge binding model (in the ikvm context) >> So with enough persistence That’s one of my strengths. Or weaknesses. Take your pick. ☺ Appreciate the feedback Anil From: Andrew T. Finnell [mailto:[email protected]] Sent: Tuesday, September 27, 2016 9:14 AM To: Anil Peres-Da-Silva <[email protected]>; Jeroen Frijters <[email protected]>; [email protected] Subject: Re: [Ikvm-developers] Compiler Warnings from ikvmc This might help: https://mvnrepository.com/artifact/javax.jmdns/jmdns/3.4.1 And you can find the Apache Commons one the same way. I thought there used to be a place that had quite a bit of the Apache artifacts pre-transcompiled. It may have lapsed in updates. I was able to get Apache Zookeeper working in a .NET runtime before. So with enough persistence I'm certain you can get your project working. The Java multicast could be an issue but you'll find out quickly enough. There might be a native .NET implementation of what you're attempting to use. Are you able to share the top level project or is it in-house? Regards, Andrew T. Finnell -------- Original message -------- From: Anil Peres-Da-Silva <[email protected]<mailto:[email protected]>> Date: 9/27/16 8:34 AM (GMT-05:00) To: Jeroen Frijters <[email protected]<mailto:[email protected]>>, [email protected]<mailto:[email protected]> Subject: Re: [Ikvm-developers] Compiler Warnings from ikvmc Ah, ok That makes sense Thank you anil From: Jeroen Frijters [mailto:[email protected]] Sent: Tuesday, September 27, 2016 8:33 AM To: Anil Peres-Da-Silva <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> Subject: RE: Compiler Warnings from ikvmc Hi Anil, The classes ikvmc warns about are not part of the JDK. You’ll need to find the jars that contain these dependencies (recursively) and pass them to ikvmc (either directly or as references to compiled jars). Regards, Jeroen From: Anil Peres-Da-Silva [mailto:[email protected]] Sent: Monday, September 26, 2016 23:37 To: [email protected]<mailto:[email protected]> Subject: [Ikvm-developers] Compiler Warnings from ikvmc Hi, I’m trying out the Release Candidate 8.1 version of ikvm, for the first time. I’ve got a java .jar which I’ve successfully converted into a .NET assembly, which runs (for the most part) from within Visual Studio 15. So far, I’ve encountered one issue. In generating the .dll, ikvmc produced five warnings (below). warning IKVMC0100: Class "javax.jmdns.ServiceListener" not found warning IKVMC0100: Class "javax.ejb.EJBObject" not found warning IKVMC0100: Class "javax.ejb.EJBHome" not found warning IKVMC0100: Class "org.apache.commons.net.ftp.FTPClient" not found warning IKVMC0100: Class "javax.jmdns.JmDNS" not found When running the code in VS2015, and attempting to connect to an ActiveMQ server, the code threw a java.lang.RuntimeException. This runtime exception is clearly connected to the warnings generated. Does ikvm support javax? Am I missing something? Appreciate the help Thanks Anil Click here<https://www.mailcontrol.com/sr/16LEfNnvYBvGX2PQPOmvUiQSa3+T5MHvri!svj6zCue31MygGfW!rkk!k3LJXJD9!S1XATNqGlxjDxGYc2QXWA==> to report this email as spam. ------------------------------------------------------------------------------ _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers