views:

105

answers:

5
  1. Are there any tools available to simplify the conversion?
  2. What percentage of Java code is converted exactly to .NET code by these tools?
+3  A: 

You can try IKVM. Saxon, an extremely popular Java XQuery/XSLT engine by Michael Kay, uses IKVM.

IKVM.NET is an implementation of Java for Mono and the Microsoft .NET Framework. It includes the following components:

* A Java Virtual Machine implemented in .NET
* A .NET implementation of the Java class libraries
* Tools that enable Java and .NET interoperability

http://www.ikvm.net/

rxin
+1  A: 

Java is roughly equivalent to c#, so translating to c# should be relatively straightforward.

The path from a Java webserver to ASP.NET is less clear.

Robert Harvey
+2  A: 

You could try this one http://mayaf.org/janett/

Janett translates Java syntax, constructs and calls to Java libraries to C# / .Net counterparts.

Kieran
A: 

You might try to the Java Language Conversion Assistant from Microsoft. I think they may have dropped support, but now ArtInSoft seems to have a related product:

http://www.artinsoft.com/pr_jlca.aspx

There's also Octopus from Remotesoft:

http://www.remotesoft.com/octopus/

The issue with porting from Java is usually not so much the language itself, which is pretty similar to C#, as it is the libraries.

Of course, a web app will present an additional layer of complexity. If the app doesn't have too much code at the page rendering phase, it shouldn't be very difficult. If the page is riddled with code, then you may be better off re-writing it than trying to port directly.

RickNZ
A: 

Have you considered using J#? It's no longer supported but if you're just trying to get onto a .NET language, that might be the fastest path.

No Refunds No Returns