Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Java JAR file in .NET

What options / methods / software are available to convert a JAR file to a managed .NET assembly?
Please provide all commercial and non-commercial methods in the answer.
These don't include solutions which require Java to be installed on the host machine.

like image 753
Maltrap Avatar asked Sep 16 '08 03:09

Maltrap


1 Answers

I could be wrong, but I'm pretty sure that's impossible. The java byte code is different to the code produced to run on the CLR.

Snarky answer: Get the source code, and port it.

EDIT: A little poking comes up with http://sourceforge.net/projects/ikvm/, a Java Virtual Machine implementation for .NET. Not quite what you asked for, but it's probably going to be the best you can do.

like image 134
Bernard Avatar answered Oct 13 '22 17:10

Bernard