Adding a facet to a J2EE project

This topic explains how to add a facet to an existing project in your workspace.
Facets define characteristics and requirements for projects. When you add a facet to a project, that project is configured to perform a certain task, fulfill certain requirements, or have certain characteristics. For example, the EAR facet sets up a project to function as an enterprise application by adding a deployment descriptor and setting up the project's classpath.

New projects generally have facets added to them when they are created. To add another facet to a project that already exists, follow these steps:

  1. In the Project Explorer view, right-click the project and then click Properties.
  2. In the Properties window, click Project Facets. The Project Facets page lists the facets in the project.
  3. Click Add/Remove Project Facets.
  4. In the Add/Remove Project Facets window, select the check boxes next to the facets you want this project to have and select a version number for each facet. You can also choose a preset combination of facets from the Presets list, and you can find out more about the requirements for each facet by right-clicking the facet name and then clicking Show Constraints.
  5. If you want to limit the project so it will be compatible with one or more runtimes, click the Show Runtimes button and select the runtimes that you want the project to be compatible with.
  6. Click Finish.
  7. Click OK.
Related tasks
Creating an enterprise application project
Creating an application client project
Creating a connector project