Export (0) Print
Expand All

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

Visual Studio .NET 2003

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.

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

Visual J++ Projects

To convert a Visual J++ project

  1. Start Visual Studio .NET.
  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 Visual J++ 6.0 project .
  5. On the Select a project file page, click Browse.
  6. Browse to the correct .vjp file, and select it.
    Note   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 conversion page, click Next.
  9. Fix code that could not be converted automatically. For more information, see Manually Upgrading Unconverted Code.

Java-Language Projects

To convert a Java-language project

  1. Start Visual Studio .NET
  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.
    Note   You will not see the files in the directory you select, but all .jav and .java files in it will be converted. All other files in the directory are ignored.
  7. On the Configure your new project page, specify the following:
    • Name of the project to be created.
    • Directory in which the any additional files for your project are located.
      Note   You will not see the files in the directory you select, but all .jav and .java files in it will be converted. All other files in the directory are ignored.
    • Output type of the project.
  8. On the Specify a directory for your new project page, specify the name and directory of the new project to be created.
  9. On the Begin your conversion page, click Next.
  10. Fix code that could not be converted automatically. For more information, see Manually Upgrading Unconverted Code.

See Also

Java Language Conversion Assistant | Manually Upgrading Unconverted Code

Show:
© 2014 Microsoft