📜 ⬆️ ⬇️

Ja.NET - Java for .NET

image How to cross a terrible hedgehog? This seemingly anecdotal task was pretty well decided by the developers of the Ja.NET project. As a result of their hard work, a unique creation appeared - JVM, working under the Microsoft .NET Framework. The developers claim partial compatibility with Java SE 1.5.

At this place, developers with experience, wincing, will recall the half-dead J #, later practically abandoned by "parents." But Jeanette - unlike that crafts - the girl is serious, and the approach shows a more thoughtful. Her parents include eminent projects: Eclipse JDT compiler, Mono's Cecil, and Apache Harmony. Unlike its counterparts, Ja.NET is a full-fledged virtual Java machine based on .NET. In addition, the compiler generates the native MSIL code, which has a positive effect on performance.


')
 class HelloWorld { public static void saySomethingUsingJava(String message) { System.out.println(message); } public static void saySomethingUsingDotNet(String message) { System.Console.WriteLine(message); } } public class MyProgram { public static void main(String[] args) { HelloWorld.saySomethingUsingJava("A message via Java API's"); HelloWorld.saySomethingUsingDotNet("A message via .NET framework API's"); } } 


As you can see from the sample code, the program can use both the Java class library and BCL .NET.

Summarizing, we can say that the project is as interesting as it is ambitious. I would like to hope that developers will be able to release a fully functional product. Can one of the “high sides” support them in this?

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


All Articles