Replies: 2 comments 1 reply
-
|
I would suggest moving to using IkvmReference. But the error you're getting is probably because the ikvm/ directory isn't discoverable. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you! Thank you for the help |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
We have .Net 4.7.2 application that uses a dll that was built with IKVM 8.2.1. ( converted from *.jar to dll).
Trying to switch to IKVM 8.14
Created sample console app .Net 4.7.2. AnyCPU
jar-> dll.
ikvmc -r:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll" -r:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.dll" -runtime:"C:\Projects\ikvm-8.14.0\IKVM-8.14.0-jre-net472-win-x64\bin\IKVM.Runtime.dll" -target:library -out:my_java.dll my_java.jar
Added IKVM Nuget package to the solution
Added reference to my.dll
Trying to instantiate a class from my_java.dll
Getting IKVM.Runtime.RuntimeInit.Init().....
"TypeInitializationException". "Could not locate ikvm home path"
I suspect something is with the way we use ikvmc.
In 8.2.1 we simply used:
ikvmc.exe -nojni -out:my_java.dll my_java.jar
Please advise what could be wrong,
Regards
Beta Was this translation helpful? Give feedback.
All reactions