8.5.2 and IKVM.Tools.Importer error "fatal error IKVMC5025: Unable to load runtime assembly" #373
Replies: 4 comments 26 replies
-
ikvmc requires that you use -reference to point to every DLL from the target framework that you are compiling the assembly for, as well as the -runtime argument to point to the IKVM.Runtime.dll assembly that you want the resulting assembly to bind to. These options exist because there is no longer a single .NET Framework for which you might be generating an assembly. There are like 200 different versions of Core, at various version levels, that you might use the same tool to operate against, and multiple versions of IKVM.Runtime you might want to cross target (using the .NET Core 3 version of the tool to target a .NET 5 version of the assembly, etc). The required arguments have thus become very complicated. Which is why IkvmReference and MavenReference now exist. These let you directly add a Java library from Maven, or from a raw .JAR file, to your .NET project, as part of it's build, where the build scripts assemble the appropriate options based on what your own library targets. |
Beta Was this translation helpful? Give feedback.
-
I would consult the README for the ideal steps. |
Beta Was this translation helpful? Give feedback.
-
Maybe I understand the problem but not the solution. IKVM.ByteCode need System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0 but if I put the correct System.Runtime.CompilerServices.Unsafe.dll, I find this other error System.Memory need System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1 Maybe the problem is System.Memory.dll included into ikvm 8.5.2, that dll need and old System.Runtime.CompilerServices.Unsafe.dll version |
Beta Was this translation helpful? Give feedback.
-
Hi, I try to use the first approach: IkvmReference |
Beta Was this translation helpful? Give feedback.
-
I try to convert a .jar into dll file but, from 8.5.2 I get this discussion subject error
I run this simple command ./ikvmc.exe -out:output.dll input.jar into this folder
...\ikvm.msbuild.tools.runtime.win7-x64\8.5.2\ikvmc\net461\win7-x64
where is the problem? With old version of ikvm all run correctly
Beta Was this translation helpful? Give feedback.
All reactions