Convert jar to dll using ikvm

I am trying to convert jar to dll in dotnet using IKVM but I get this error. Exception in thread "main" java.lang.ClassNotFoundException: \ Location jar \ ...

HOW does anyone give some recommendations.

Thank you in advance

+4
source share
4 answers

Prerequisites -

  • You must have JDK installed on your system.
  • Set environment variables for the JDK.

enter image description here

Steps:

  • Open a command prompt.
  • Go to the ikvmc folder ( ikvmc.exe comes with the ikvm package).
  • Type ikvmc -out:myapp.dll myapp.jar
+16
source

Is it possible that you forgot the link to all the necessary IKVM.Net dll?

IKVM.Runtime.dll IKVM.Reflection.dll IKVM.OpenJDK. *. Dll

I have something similar with SmsLib.Net version

0
source

First create a new Bindings library project. In Xamarin Studio or Visual Studio, create a new solution and select the Bindings library template for Android.

The template includes the Jars folder into which you add the .JAR to the Bindings Library project. Right-click the Jars folder and choose Add> Existing Element:

Browse to the .jar file you downloaded earlier, select it and click Add:

Verify that the .jar file has been successfully added to the project:

right click your file jar => properities => select the built-in jar

Set the build action for EmbeddedJar:

EmbeddedJar -.JAR will be embedded in the Bindings library.

Set API target level for your Bindings library

Finally, create the Bindings library. Although some warning messages may be displayed, the Bindings library project should succeed and generate the output .DLL in the following location:

Projectname / bin / Debug / JarBinding.dll

Link

https://developer.xamarin.com/guides/android/advanced_topics/binding-a-java-library/binding-a-jar/

0
source

Source: https://habr.com/ru/post/1344045/


All Articles