You can use wizards to create Java™ EE projects in your workspace.
Procedure
- To use the Java EE
wizard from the menu bar, select , and select the type of enterprise
application you want to create:
- Enterprise Application Project
- Web Project
- EJB Project
- Connector Project
- Application Client Project
To create Utility projects, select . To create Web fragment projects, select . Click Next.
- In the Project Name field, type
a name for your project.
- In the Target runtime field, select
your target runtime, or click New to create
a new runtime.
- In the <module-type> Module version field, you can accept the default value or change the module version
number. This field controls the primary facet version for your project.
The available versions are filtered based on the target runtime that
you selected in the Target runtime field.
If the target runtime is WebSphere® Application Server version 7.0, then the web project versions available
are versions 2.2, 2.3, 2.4, and 2.5. If the target runtime is WebSphere Application Server
version 8 or 8.5, then the web project versions available are versions
2.2, 2.3, 2.4, 2.5, and 3.0. The module version here is like clicking Modify... beside the Configuration field.
- In the Configuration field, you
can accept the default configuration, select a pre-defined project
configuration from the Configurations drop-down
list, or click Modify... to change the facets
for your project.
If
you plan to create JPA entities in the EJB 3.1 project, for example,
select Java Persistence. Save this configuration
with a meaningful name, for example, EJBDevelopmentWithJPA so that you can reference this configuration in any EJB 3.1 projects
that are subsequently created.
- Select one or more project facets from the Project Facets list.
- To specify server runtime environments, click Runtimes and select one or more runtimes.
- After making your selections, you can save your custom
configuration by clicking Save.
- Optional: Select Add project to
an EAR module in the EAR Membership field to add the new module to an enterprise module (EAR) project.
Type a new project name or select an existing enterprise module project
from the drop-down list in the EAR Project Name combination box. Or, click New to launch
the New EAR module Project wizard.
- In the Content Directory: field,
specify a folder for your project files. The project validator checks
to ensure that project conforms to the following guidelines:
- The root folders of the project may not have linked resources.
- Must have only one output folder.
- If the output folder is a Java source folder, then it must map to the root folders
The default for single rootedness problems is set to warning.
To change this setting, select .
Click the
... settings field, and select
- Error
- Warning
- Ignore
- Click Next to continue defining
your enterprise project, or click Finish.