Tool to convert java to c# code [closed]
Asked Answered
M

4

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.

Millda answered 22/5, 2009 at 8:27 Comment(3)
possible duplicate of Where can I find a Java to C# converter?Acapulco
I do not agree with off-topic, as It's clear viewing statistics ... shame :)Dre
Found the following online Java to C# converter useful - javainuse.com/java2csharpFragile
S
25

For your reference:

Note: I had no experience on them.

Shanta answered 6/1, 2010 at 16:55 Comment(6)
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.Noted
also - I was not able to figure out how to use sharpen...Noted
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.Koeninger
It looks like sharpen is still active but at a different location? github.com/slluis/sharpen the only official location I found is this ugly svn source.db4o.com/db4o/trunk/sharpenAhriman
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 converterOsorio
Sharpen is deadSwanee
N
12

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

Northwester answered 27/9, 2013 at 15:26 Comment(2)
Ikvm throws an error when we initialize calender library :(Gromwell
The IKVM project lead has announced that he has decided to stop working on IKVM.NET and hopes that someone else will fork it (weblog.ikvm.net/2017/04/21/TheEndOfIKVMNET.aspx)Umlaut
H
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

Hearty answered 25/8, 2012 at 22:24 Comment(1)
I have used this. And it really worked great for me.Legerdemain
E
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.

Emarie answered 22/5, 2009 at 8:32 Comment(6)
Ya I've tried that before and it doesn't really work very well. I think Microsoft has stopped support for it. It doesn't support newer java features like generics.Millda
Visual Studio 2003 appears to be required to installDewhurst
@Dewhurst It's supported on 2005 as well. But yeah, screw that.Opt
JLCA was not supported after VS 2005Belkisbelknap
JLCA link is deadSwanee
still works for me. you just get a stupid big Surface Pro ad on top of the page :)Emarie

© 2022 - 2024 — McMap. All rights reserved.