- Are there any tools available to simplify the conversion?
- What percentage of Java code is converted exactly to .NET code by these tools?
views:
105answers:
5You 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
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.
You could try this one http://mayaf.org/janett/
Janett translates Java syntax, constructs and calls to Java libraries to C# / .Net counterparts.
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.
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.