Re: Why IKVM.NET reports types as missing when java does not?
Seref Arikan <[email protected]> Wed, 15 Apr 2015 08:05:24 +0100
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <CA+4ThdozEGA2vqWarWsyT6_NO=uk-CruvTWoJxMVh=ogU=OuKA@mail.gmail.com> |
Thanks Volker and Jeroen, This makes sense. I'll go ahead and test the libraries. Regards Seref On Tue, Apr 14, 2015 at 9:11 PM, Volker Berlin <[email protected] > wrote: > Hi Seref, > > If you use a compiled library in Java then you need only the dependencies > that are used at runtime. But ikvmc is a compiler like javac. This means > you need also all optional dependency like if you use the source code of > the library instead the jar file. > > But this must not be a critical problem. Ikvmc compile an error code in > the output if a class can not resolved. If this code is optional and will > never used then it is like with Java. You will not see any error at runtime. > > Volker > > > Am 14.04.2015 um 18:25 schrieb Seref Arikan: > > Greetings, > I'm not sure if the subject is clear enough. When I use ikvmc.exe on a set > of jars, I get a bunch class not found exceptions. As Jeroen points out in > this stackoverflow answer, this is not always a problem: > http://stackoverflow.com/questions/5256658/warning-in-converting-jar-file-into-dll-using-ikvm > > > What I'm curious about is: when a jar file I'm using is added to a java > project, the java development environments I'm using give me no errors > about missing types. When the same jar is fed to ikvmc.exe, I get the class > not found errors. If my own java code is referring to a type that is not > there, the java compiler(IDEs) catch it. > > So how does ikvmc.exe traverse type dependencies? It is clearly > different than the java compiler, since ikvmc.exe complains about missing > types which are not reported as missing by the java compiler. > > The reason I'm asking this is, I know for a fact that the jars I'm using > can be used standalone in a java project, but ikvmc reports missing types. > So can I assume that despite these warnings, .NET dlls generated from the > jars would always work? (since they're guaranteed to work standalone under > java?) > > Regards > Seref > > ps: IKVM is one of my favourite tools; I do hope it gets support from > the recent open source .NET activities of Microsoft. > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exerciseshttp://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > > > > _______________________________________________ > Ikvm-developers mailing [email protected]://lists.sourceforge.net/lists/listinfo/ikvm-developers > > > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live > exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- > event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > Ikvm-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers