Re: Bi-directional .NET <-> Java support?
Jeroen Frijters <[email protected]> Sat, 3 Oct 2015 08:38:46 +0000
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Brian, Cyclic dependencies between modules are a pain even without cross language interop, so you might want to consider refactoring or using dependency injection. Having said that, IKVM itself uses a dual pass compilation strategy to solve exactly this problem (IKVM.Runtime.dll depends on IKVM.OpenJDK.COre.dll, which in turn depends on IKVM.Runtime.dll) Regards, Jeroen > -----Original Message----- > From: Brian Cottingham [mailto:[email protected]] > Sent: Friday, October 2, 2015 20:12 > To: [email protected] > Subject: Re: [Ikvm-developers] Bi-directional .NET <-> Java support? > > Hmmm, I'm not clear on the path to accomplish my goal. My goal is thus: > > .NET Unity App, launched in usual .NET way (not with IKVM, because it's > not from a a .jar) ============== MyModule.dll ( from ikvmc module.jar ) > > Needs > > 1. .NET App needs to be able to call methods in MyModule.dll > > 2. MyModule.dll needs to be able to call .NET App methods. > > On Fri, Oct 2, 2015 at 11:15 AM, Volker Berlin <[email protected] > <mailto:[email protected]> > wrote: > > > If you compile your Java again the stub classes then you can't run > it as Java application. You can call .Net code from Java classes but > only if it run with IKVM. The stub jar files are only for the compiler > and not for the runtime. > > Volker > > > Am 02.10.2015 um 16:48 schrieb Brian Cottingham: > > > I'm trying to have my .NET Unity code call some Java game > logic, and the Java code needs to call back to the .NET Unity game > engine APIs. I can't make this work. > > I've tried making a stub file of the .NET classes I'm trying > to reference, but get Class Not Found when trying to use said classes > from Java. This occurs even when attempting a "hello, world"-type > prototype, with no Unity involved. > > Is this supposed to be possible? What can I do to make this > work? > > > > ------------------------------------------------------------- > ----------------- > > > > _______________________________________________ > Ikvm-developers mailing list > [email protected] <mailto:Ikvm- > [email protected]> > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > > > ------------------------------------------------------------------- > ----------- > > _______________________________________________ > Ikvm-developers mailing list > [email protected] <mailto:Ikvm- > [email protected]> > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > > ------------------------------------------------------------------------------