tags:

views:

325

answers:

5

Possible Duplicate:
Tool to convert java to c# code

I have done a project in java and I want to convert it to C#.Net. I'm using Visual Studio 2008. How can I convert the code from Java to C#? Are there any tools available?

+1  A: 

IKVM.NET Bytecode Compiler

Darin Dimitrov
+2  A: 

I think your best shot would be, unless you really really need all the code in C#, to use Visual J# and integrate your Java code with C#.

Pablo Santa Cruz
+2  A: 

There are tools that can help do this. For example this one from the team who created db4o:

Smart java to c# conversion for the masses with sharpen

Note that these are not perfect and some constructs and API's cannot be easily translated.

Iain
+1  A: 

Here is an Msdn Article about converting from Java to Visual C#.

Gordon
A: 

Microsoft used to support their own .net implementation of the Java language, called Java#, but unfortunetelly they discontinued the project.

But at least you could try it to see if it could help you to convert your code to .net

Kico Lobo
J#. Only implemented a Microsoft "embrace, extend and extinguish" version of Java 1.1 (Java 1.1 was superseded by Java 2 in 1998).
Tom Hawtin - tackline