Selecting default project structures
You can use the Preferences page to set your default project structures.
Procedure
- Click Window > Preferences to open the Preferences page.
- Expand Java™ EE, and select Project
- Select the elements that you want to set as the default
when creating your Java EE application.
These project settings include: Enterprise Application Membership:
- Add project to an EAR (default: checked)
Content directory (indicates the default directory in your workspace where the indicated project is stored. You can change the name of the default directory here):- Enterprise Application Project:
- Content Directory: (default: unspecified)
- Web Project:
- Default Source Folder: (default: src)
- Output Folder: (default: WebContent/WEB-INF/classes)
- Content Directory: (default: WebContent)
- EJB Project:
- Default Source Folder: (default: ejbModule)
- Output Folder: (default: build\classes)
- Application Client Project:
- Default Source Folder: (default: appClientModule)
- Output Folder: (default: build\classes)
- Connector Application Project:
- Default Source Folder: (default: connectorModule)
- Output Folder: (default: build\classes)
- Utility/JPA Project:
- Default source folder: (default: src)
- Output Folder: (default: src)
Generate Deployment Descriptor for Java EE 5.0 or later Projects (Select this option if you want a deployment descriptor to be automatically created when you create the project type indicated):- Enterprise Application Project (default: Cleared)
- EJB Project (default: Cleared)
- Web 2.5 Project (default: checked)
- Web 3.0 Project (default: cleared)
- Application Client Project (default: cleared)
- Connector Project (applies for 1.6 only) (default: checked)
- Click Apply to apply the changes and click OK to close the Preferences page.
- Setting Java compiler compliance
Use the Workspace Preferences page to set the Java compiler compliance.
Parent topic: Setting Java EE preferences

