IKVM. NET Getting Started (2)

Source: Internet
Author: User

What is Ikvm.net?

http://www.ikvm.net/

Ikvm.net is a Java virtual machine that can run on the mono and. NET Framework. It includes the

    • A Java virtual machine implemented in. Net
    • The. NET implementation of the Java class Library
    • Interop tools for Java and. Net

It can then use the Java Library in. Net. It includes a ikvmc can-speak Java bytecode converted to. NET IL. If you reference the Java library in. NET application.

IKVM now maximizes the compatibility with jdk1.4.

Referencing the Java API to. Net

You first need to add to the IKVM.Runtime.dll OpenJDK.ClassLibrary.dll project, using ikvmc the Convert jar to a. NET DLL.

ikvmc -target:library mylib.jar

For example I need to use PDFBox to call in. NET and use the following command to generatePDFBox-0.7.3.dll

ikvmc -target:library PDFBox-0.7.3.jar
Composition of the Ikvm.net

IKVM. Runtime.dll:VM Runtime and all support code.
It includes the following features:

    • byte code JIT compiler and validator: use JIT to compile Java Byte code to IL.
    • Object pattern Mapping Structure: Map system.object,system.string,system.exception in. NET to Java.lang.Object in Java code. Java.lang.string,java.lang.throwable.
    • Manages the. NET re-implementation of the local method (in Classpath).

    • *IKVM. Gnu. Classpath.dll: The compiled GNU Classpath version, which is made up of a Java class library implemented by the Free Software Foundation and some ikvm.net additional code. Note: The GNU classpath here is not part of the ikvm.net, but the former is used in IK.VM.NET.
    • IKVM. Jni. [mono| Clr-win32].dll: Manages C + + compilation by implementing a JNI interface. As an optional part, it is only used when the program uses its own local library. It is not used for pure Java programs.
    • Ikvm.exe: Startup execution Program (dynamic mode) that is very similar to Java.exe.
    • Ikvmc.exe: Static compilers, which are used to compile Java classes and jars to make them. NET assembly (static mode).
    • Ikvmstub.exe: one from. NET assembly to generate stub class tools, as JAVAP as anti-compilation. NET assembly. IKVM. NET knows how to stub and replace the reference to the stub with the actual. NET type reference.
    • IKVM. Awt. WinForms.dll: Very limited scattered AWT implementations.

IKVM. NET Getting Started (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.