Creating a new source folder

You can create a new folder to contain Java source code using the New Source Folder wizard.

  1. In the Package Explorer, select the project where you want the new source folder to reside.

  2. From the project's pop-up menu, select New > Source Folder. The New Source Folder wizard opens.

  3. In the Project Name field, the name of the selected project appears. If you need to edit this field, you can either type a path or click Browse to choose a project that uses source folders.

  4. In the Folder Name field, type a name for the new source folder.

  5. If the new folder nests with an existing source folder you can check Update exclusion filters in other source folders to solve nesting. Otherwise you have to use the Java build path page (Project > Properties > Java Build Path) to fix the nesting conflict by removing other source folders.

  6. Click Finish when you are done.

Related concepts

Java projects

Related tasks

Creating Java elements
Creating a new Java project
Creating a new Java package
Creating a Java project as its own source container
Creating a Java project with source folders

Related reference

New Source Folder wizard
Java Toolbar actions
Package Explorer

Legal notices