IKVM
Template:Short description {{#invoke:redirect hatnote|redirect|1}} {{#invoke:Infobox|infobox}}Template:Template other {{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y| AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo class | logo size | logo title | logo upright | logo_alt | logo_caption | logo_class | logo_size | logo_title | logo_upright | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | qid | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot class | screenshot size | screenshot title | screenshot upright | screenshot_alt | screenshot_class | screenshot_size | screenshot_upright | service_name | size | standard | title | ver layout | website }}Template:Main other{{#invoke:Check for conflicting parameters|check | template = Template:Infobox software | cat = Template:Main other | logo size; logo_size | logo class; logo_class | logo alt; logo_alt | logo title; logo_title | logo caption; logo_caption | screenshot size; screenshot_size | screenshot upright; screenshot_upright | screenshot class; screenshot_class | screenshot alt; screenshot_alt | screenshot title; screenshot title | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | programming language; programming_language | operating system; operating_system }} IKVM (formerly IKVM.NET) is an implementation of Java for Common Language Infrastructure implementations such as Mono and the .NET framework. IKVM is free and open-source software, distributed under the zlib permissive software license.[1]
Work began on IKVM in early 2000 to assist migration of a Java-based reporting package from Sumatra to the Microsoft .NET Framework. The original developer, Jeroen Frijters, discontinued work on IKVM in 2015.[2] In 2018, Windward Studios forked IKVM.NET to continue development on the open-sourced IKVM.[3] In 2022 Jerome Haltom and others picked up the work on a new GitHub organization and finished .NET Core support.[4]
Components
IKVM includes these components:
- A Java virtual machine (JVM) implemented in .NET
- A .NET implementation of the Java class libraries
- A tool that translates JVM bytecode (JAR files) to .NET IL (dynamic-link library (DLL) or Portable Executable (EXE) files).
- Tools that enable Java and .NET interoperability
IKVM can run compiled Java code (bytecode) directly on .NET or Mono. The bytecode is converted on the fly to Common Intermediate Language (CIL) and executed.
By contrast, J# is a Java syntax on a .NET framework, whereas IKVM is effectively a Java framework running on a .NET framework.
Jeroen Frijters was the main contributor to IKVM. He is Technical Director of Sumatra Software, based in the Netherlands.[5]
Name
The IKVM part of the name is a play on JVM in which the author "just took the two letters adjacent to the J".[6]
Status
IKVM 8 implements Java 8.
The IKVM organization also maintains IKVM.Maven.Sdk,[7] an extension to the .NET PackageReference system that allows direct references to and transpiling of Maven artifacts. IKVM.Maven.Sdk is also available on NuGet.org.[8]
Example
The following is a .NET application written in Java, which prints the list of files in the current directory.
In IKVM, the System.* namespace in .NET is written as cli.System.*.[9]
<syntaxhighlight lang="java"> package org.wikipedia.examples;
import cli.System.IO.*;
public class Example {
public static void main(String[] args) {
String[] files = Directory.GetFiles(".");
for (String file : files) {
System.out.println(file);
}
}
} </syntaxhighlight>
See also
{{#invoke:Portal|portal}}
References
External links
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}