I needed to convert a Java 1.5se app to C# 2.0.
Does anyone know of a tool (preferably free/open source) to do this?
I needed to convert a Java 1.5se app to C# 2.0.
Does anyone know of a tool (preferably free/open source) to do this?
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.
How long do you have? The universal dovetailing algorithm will do it.... yeah or jon. I guess he can run the universal dovetailing time quicker than a quantum computer.
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.
Microsoft used to have their own Java to C# Converter - Microsoft Java Language Conversion Assistant 3.0
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