Creating a Java Project as its Own Source Container

For simple projects, the project itself can act as the source container.

1.

From the main workbench window, do one of the following:

  • From the drop-down menu on the Open The New Wizard button in the workbench toolbar, select Project. Then select Java on the left, and on the right, select Java Project. Then click Next.
  • Click the Open The New Wizard button; then in the left pane, select Java, and in the right pane, select Java Project. Then click Next.
  • Select from the menu bar File > New > Project. Then select Java on the left, and on the right, select Java Project. Then click Next.

2.

The New Java Project Wizard appears.

3.

In the Project Name field, type a name for your new Java project.

4.

Either check or clear the box indicating that you want to use the default location for your new project.

If you clear this check box, then type or browse to select a location for the project.

5.

Click Next.

6.

On the Source tab, choose to use the project itself as the source container.

7.

Optionally, on the Projects tab, select the required projects to be on the build path for this project. Use these options only if your project depends on other projects.

8.

Optionally, on the Libraries tab, select JAR files and CLASS file containers to add to the build path for this new project and attach source to the JAR files. Use these options only if your project requires additional libraries.

9.

On the Order tab, use the Up and Down buttons to move the selected JAR file or CLASS file container up or down in the build path order for this new project.

10.

Click Finish when you are done.