Skip to content

dotnet/java-interop

Folders and files

NameName
Last commit message
Last commit date
Aug 9, 2024
Apr 12, 2024
Jul 31, 2020
Jan 7, 2023
Jan 30, 2025
Mar 12, 2025
Mar 28, 2025
Mar 11, 2025
Apr 15, 2025
Apr 15, 2025
Feb 24, 2025
Sep 9, 2021
Aug 20, 2020
Sep 25, 2018
Jun 13, 2024
Jun 13, 2024
Jun 2, 2023
Feb 18, 2025
Mar 12, 2025
Dec 5, 2024
Jul 31, 2020
Jun 13, 2024
Apr 26, 2016
Jun 13, 2024
Aug 23, 2023
Aug 9, 2024
May 24, 2021
May 18, 2023
Oct 15, 2019
Oct 13, 2021
May 5, 2021
May 10, 2016

Repository files navigation

Java.Interop

Java.Interop is a binding of the Java Native Interface for use from managed languages such as C#, and an associated set of code generators to allow Java code to invoke managed code.

This allows one to bridge code running on .NET's CLR and code running on a Java VM.

Note this does not mean that one can run Java code on .NET, or vice-versa.

Java.Interop currently does not ship independently. It is shipped as part of Microsoft's .NET for Android product, available via Visual Studio or .NET 6+. However, it is designed to be fully independent of Android and should be usable by other Java implementations. For other uses, please compile and distribute from source.

Some additional context for this project is documented in the Motivation and Architecture pages.

Building

  • The main branch is configured to build with .NET 7, available here.
  • The release/6.0.3xx branch is configured to build with .NET 6.

Java.Interop.sln must first run some "preparatory" tasks before it can be built:

dotnet build -t:Prepare

Once Java.Interop.sln has been prepared, it can be built in Visual Studio 2022 or with dotnet:

dotnet build

Additional build options are documented here.

Feedback and Contributing

This project welcomes issues and PRs.

License

Copyright (c) .NET Foundation Contributors. All rights reserved. Licensed under the MIT License.

About

Java.Interop provides open-source bindings of Java's Java Native Interface (JNI) for use with .NET managed languages such as C#

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 31