Creating a Java project

Select Java™ project on the New Source Project Creation page to create a Java project for your J2C application.

Before you begin

If you want to learn more about creating Java projects, see: Java Project documentation.

Procedure

  1. Select Java project on the New Source Project Creation page of the J2C wizard.
  2. On the Create a Java project page, in the Project name field, type a name for your Java project.
  3. Select a location for your Java project:
    • Create project in workspace: Select this option to save your Java project in this workspace.
    • Create project from existing source: Select this option to save your Java project in an existing location or directory. Click Browse to select the location for your project.
  4. Specify the JRE that you want to use:
    • Use default JRE (Currently 'jdk'): Select this option if you want to use the default JRE.
    • Use a project-specific JRE: Select this option if you want to select a different JRE and select one from the list.
    • Use an execution environment JRE: Select this option if you want to use an execution environment JRE and select one from the list.
    • Configure JREs: Select this link if you want to customize the JRE for your project.
  5. Specify the project layout that you want:
    • Use project folder as root for sources and class files: Select this option if you want to save all your generated files within this Java project folder.
    • Create separate source and class folders: Select this option if you want to save your source in a different location from your application output.
  6. In the Working sets field, select Add project to working sets and click Select to specify the working set you want to use, and click Next.
  7. On the Java settings page, you can define the Java build settings. For more information, see Java build settings, and click Finish.

What to do next

This takes you to the J2C Java Bean Output Properties page.

Feedback