Where can I find a Java to C# converter? [closed]

Even if there is such a tool, I'd highly recommend you to do the conversion by hand. Automatic converters will often faithfully reproduce the code, but ignore idioms - because they'd be really, really hard to get right.

Furthermore, the differences between generics in .NET and Java could lead to some very different decisions in the two codebases.

Really, you'll be better off doing it by hand.


A good tool to use is called Sharpen, which is open source.

This tool has been forked and updated by the Xamarin team and they used it to translate the Android APIs into C#. Their copy can be found here:

  • XobotOS/sharpen on GitHub (Xamarin team at Mono)

Java Language Conversion Assistant. Optionally installed with (at least) Visual Studio 2005 Standard Edition.

Select File/Open/Convert/Java Language Conversion Assistant.

Remember to manually go over the code afterwards. It will have lots of issues.


ikvm exposes java classes in .NET. Its not a converter, but based on my experience I'd recommend it to anyone making the transition from java to .NET