J2N is a library that helps bridge the gap between .NET and Java. It provides components to assist with porting Java code to .NET, such as collections, adapters, and extensions. It contains some features from Java that also make it generally useful in any .NET application.
$ dotnet add package J2NJ2N is a library that helps bridge the gap between .NET and Java.
Basically, if you are looking for a "JDK.NET", this is about as close as you can get. While we recommend using purely .NET components where possible when porting from Java, there are some Java features that have no .NET counterpart or the .NET counterpart is lacking behaviors that are not easy to reproduce without reinventing the wheel. Even if you prefer to reinvent the wheel by designing your own ".NETified" component, you may still need a Java-like component to compare your component against in tests.
That is why we created J2N. If you like this idea, please be sure to star our repository on GitHub.
Install-Package J2N
We love getting contributions! If you need something from the JDK that we don't have, this is the right place to submit it. Basically, the following are things that would be a good fit for this library:
To build the project from source, see the Building and Testing documentation.
If you find this library to be useful, please star us on GitHub and consider a sponsorship so we can continue bringing you great free tools like this one.