64

What is the best tool out there at the moment to convert java to c#? Apart from

  • j2ctranslator
  • j#

I use IKVM at the moment.

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
sean
  • 11,164
  • 8
  • 48
  • 56
  • 2
    possible duplicate of [Where can I find a Java to C# converter?](http://stackoverflow.com/questions/443010/where-can-i-find-a-java-to-c-converter) – Aaron Maenpaa Jun 06 '11 at 13:51
  • 4
    I do not agree with off-topic, as It's clear viewing statistics ... shame :) – LXG Mar 24 '15 at 11:30
  • Found the following online Java to C# converter useful - https://www.javainuse.com/java2csharp – Batman Rises Sep 09 '22 at 05:05

4 Answers4

25

For your reference:

Note: I had no experience on them.

Regent
  • 5,502
  • 3
  • 33
  • 59
Hendy Irawan
  • 20,498
  • 11
  • 103
  • 114
  • id love to hear some feedback from someone who has tried XES... It looks like it would be far too simple to handle complex conversions. – Brady Moritz Oct 25 '11 at 23:35
  • also - I was not able to figure out how to use sharpen... – Brady Moritz Feb 18 '14 at 20:42
  • 13
    Spent 2 days trying to get Sharpen to build and run, but it is an Eclipse plugin, so the task proved impossible, mostly due to Eclipse being the worst piece of software ever written in the history of the universe. And yes, I tried the XobotOS version, also broken. Tried XES, but the process is so slow and complicated that it would actually be faster to re-write by hand and Remotesoft Octopus is still in beta testing phase. – Ian Thompson Oct 24 '14 at 06:49
  • It looks like sharpen is still active but at a different location? https://github.com/slluis/sharpen the only official location I found is this ugly svn http://source.db4o.com/db4o/trunk/sharpen/ – Karussell Feb 03 '15 at 16:03
  • 2
    I'm intrigued by the relatively high votes on this question compared to the comments, which basically say each option is not effective. Would love to hear from the upvoters or anybody who can recommend anything effective as a converter – noelicus Jul 09 '18 at 07:20
  • Sharpen is dead – Toolkit Jan 27 '19 at 09:04
12

Don't. Leave them as Java and use IKVM to convert them to .Net DLLs.

Ben
  • 34,935
  • 6
  • 74
  • 113
9

I've had good results with this one. Much easier to use than Sharpen.

http://tangiblesoftwaresolutions.com/Product_Details/Java_to_CSharp_Converter.html

marknuzz
  • 2,847
  • 1
  • 26
  • 29
6

Microsoft has a tool called JLCA: Java Language Conversion Assistant. I can't tell if it is better though, as I have never compared the two.

Razzie
  • 30,834
  • 11
  • 63
  • 78