Creating a Java project as its own source container

For simple projects, the project itself acts as the source container.

  1. From the main workbench window, click File > New > Project. The New Project wizard opens.

  2. Select Java from the left pane and Java Project from the right pane, then click Next. The New Java Project wizard opens.

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

  4. Select or clear the Use default check box  to indicate whether you want to use the default location for your new project. If you clear this check box, then type or click Browse to select a location for the project.

  5. Click Next. The Java Settings Page opens.

  6. On the Source tab, select the Use the project as source container radio button.

  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 and Export 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.

Related concepts

Java projects

Related tasks

Creating Java elements
Creating a new Java project
Creating a Java project with source folders
Creating a new Java package
Creating a new Java class
Creating a new interface in a compilation unit
Creating a Java scrapbook page

Related reference
New Java Project wizard

Copyright IBM Corporation 2000, 2002. All Rights Reserved.