Export (0) Print
Expand All

Converting Visual J++ or Java-Language Projects to Visual C# 

Use Java Language Conversion Assistant to convert Visual J++ 6.0 projects and Java-language files for further development in Visual C#. Java Language Conversion Assistant does not modify your existing project, but rather creates a new Visual C# project based upon the original project. Any errors, warnings, or issues generated in the course of conversion are displayed in a conversion report after the new project has been generated. These errors, warnings, and issues are also noted in comments in the converted code to help you manually convert the parts of the project that cannot be converted automatically.

NoteNote

If you are new to Visual C#, take some time to familiarize yourself with the language before attempting this process. For more information, see Introduction to the C# Language and the .NET Framework.

NoteNote

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

Visual J++ Projects

To convert a Visual J++ project

  1. Start Visual Studio.

  2. On the File menu, point to Open, and click Convert.

  3. Select Java Language Conversion Assistant, and click OK.

  4. On the Source files page, select A Visual J++ 6.0 project.

  5. On the Select a project page, click Browse.

  6. Browse to the correct .vjp file, and select it.

    NoteNote

    If the CLASSPATH directive of your .vjp file specifies .jar or .class files, they are ignored.

  7. On the Specify a directory for your new project page, specify the name and directory of the new project to be created.

  8. On the Begin your conversion page, click Next.

Java-Language Projects

To convert a Java-language project

  1. Start Visual Studio.

  2. On the File menu, point to Open, and click Convert.

  3. Select Java Language Conversion Assistant, and click OK.

  4. On the Source files page, click A directory containing the project's files.

  5. On the Select source directory page, click Browse.

  6. Browse to the correct project, and select it.

    NoteNote

    You will not see the files in the directory you select, but all .jav and .java files in it will be converted. The Java Language Conversion Assistant will ignore most irrelevant files, but the source folders should be cleaned before beginning the conversion.

  7. Add any other files needed for your project in the second text box.

  8. On the Configure your new project page, specify the following:

    • Name of the project to be created.

    • Output type of the project.

  9. On the Specify a directory for your new project page, specify the name and directory of the new project to be created.

  10. On the Begin your conversion page, click Next.

  11. Fix code that could not be converted automatically. For more information, see Manually Upgrading Unconverted Code.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft