0

Possible Duplicate:
Where can I find a Java to C# converter?

Are there any free converters or tools that can convert java projects to C#? I have java code and I want to convert it to C#.

Community
  • 1
  • 1

6 Answers6

5

From Microsoft, have a look. The Java Language Conversion Assistant (JLCA)

Kumar
  • 997
  • 5
  • 8
  • I guess it is - you can download from... http://www.microsoft.com/downloads/en/details.aspx?FamilyId=46BEA47E-D47F-4349-9B4F-904B0A973174&displaylang=en – Kumar Mar 07 '11 at 20:44
3

There might be something that claims it can do it, but I would not trust it. This is a significant port and it takes a programmer to make sure it happens correctly.

madmik3
  • 6,975
  • 3
  • 38
  • 60
2

I've used JNBridge in the past on some small to medium projects with success. This allows you to call a Java library from .NET and vice versa. If you are dealing with relatively simple types in your interfaces, it might be a good way to go.

Chris Farmer
  • 24,974
  • 34
  • 121
  • 164
1
Process.Start("java MyClass.java");
mellamokb
  • 56,094
  • 12
  • 110
  • 136
  • 1
    Won't run. You need to compile the Java class first ;) –  Mar 07 '11 at 20:37
  • Hey, it sounds working can u explain a bit more ? ? ? – Madiha Khalid Mar 07 '11 at 20:46
  • @Madiha: This answer was intended to be a joke. Although, it would be nice to know WHY you need the conversion? If you seriously just need to run the code from an ASP.Net front-end, then I suppose you could actually do this... – mellamokb Mar 07 '11 at 20:48
  • Actually i want to migrate my application from java to .net, but currently i m trying with some small code file so that i could get an idea how fine the conversion could be . . . – Madiha Khalid Mar 07 '11 at 20:53
1

There is Sharpen, but I was unable to setup it properly http://developer.db4o.com/Projects/html/projectspaces/db4o_product_design/sharpen.html

Darius Kucinskas
  • 10,193
  • 12
  • 57
  • 79
1

If you just want it to RUN but not necessarily be converted to C# source code, you might find http://www.ikvm.net/ an interesting alternative.

It provides the facilities to run Java code on the .NET-runtime.

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347