IKVMOpenJDK.Core
"Mohr, Christian" <[email protected]> Wed, 2 Nov 2016 08:11:05 +0000
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Within the execution of a .NET 4.5.2 program I tried to call a method from an assembly that has been converted from a jar file using ikvmc. The .NET runtime uses reflection to invoke a method of a subclass like this: outputVariables = (Dictionary<string, object>)method.Invoke(this, methodParameterValues.ToArray()); Within the invoked method is a call to the java method: output.Add(empMetaData.Methods[sumIntMethodId].OutputParameters.ElementAt(0).Key, new EmpFunctions().sumInt(inIntOne, inIntTwo)); However even the first invoke ends with an exception. Could not load file or assembly 'IKVM.OpenJDK.Core, Version=8.1.5717.0, Culture=neutral, PublicKeyToken=13235d27fcbfff58' or one of its dependencies. The system cannot find the file specified. As source it indicates mscorlib. I've checked the references of IKVM.OpenJDK.Core and found out that it points to an mscorlib with runtime version 2.0.0.0. My .NET application certainly uses the mscorlib v4.0.30319. I tried to modify ikvmc.exe.config in a way that I added 4.0.30319 as supported runtime and in another conversion I only used 2.0.0.0 as supported runtime. But in both cases the exception occurs in my .NET application. Could it be that I cannot use IKVM.OpenJDK.Core.dll in .NET 4.5.2 ? And if yes, is there an IKVM.OpenJDK.Core.dll that I could use ? Best regards Christian ------------------------------------------------------------------------------ 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