C# to Java Translator – CodePorting.Translator Cs2Java Release 25.6
Release Notes
All Changes
[Feature] Add the ability to translate c# enum to java enum.
[Bug] An exception “Sequence contains no elements” occurs if you call CodePorting.Applications.Console with the -c parameter and the configuration file.
Download Artifacts
CodePorting.Translator Cs2Java 25.6
Contains the CodePorting.Translator Cs2Java tool, which allows converting existing C# code to JavaAdded: 6/11/2025DownloadFile Size: 67Mb
CodePorting.Translator Cs2Java is a transpiler solution that can help you automate the conversion of C# source code to Java in order to release the same version of the software for both languages without changing the APIs or code documentation.After converting the C# project to Java, create a Maven project using the converted files. Next, configure your Maven project by adding the necessary dependencies from the CodePorting.Translator Java Class Library (JCL).
Adding CodePorting.Translator JCL to the Maven Project
You can easily add JCL directly to your Maven project with simple configurations.
1. Specifying Maven Repository Configuration
First, you need to specify the CodePorting Maven Repository configuration/location in your Maven pom.xml as follows:
codeportingCodePorting Maven Repositoryhttps://products.codeporting.com/translator/csharp-to-java/repo/
2. Defining CodePorting.Translator JCL Dependency
Then, based on the namespaces used in the original C# project, define CodePorting.Translator JCL dependencies in your pom.xml as follows:
com.aspose.ms.jdk.NetFrameworkmscorlib24.7.0com.aspose.ms.jdk.NetFrameworkSystem24.7.0com.aspose.ms.jdk.NetFrameworkSystem.Security24.7.0com.aspose.ms.jdk.NetFrameworkSystem.Xml24.7.0com.aspose.ms.jdk.NetFrameworkSystem.Net24.7.0com.aspose.ms.jdk.NetFrameworkSystem.Drawing24.7.0