Changing the Java compiler version for a J2EE project

You can change the version of Java used in a J2EE project by changing the value of the Java facet.

The Java facet applies only to J2EE projects. To set the Java compiler level of a non-J2EE project, such as a Java project, see Java Compiler.

  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, click the Java facet to select it.
  5. Select the level of Java compiler to use from the drop-down box next to the Java facet.
  6. Click Finish.
  7. Click OK.
Related concepts
Project facets
Related tasks
Adding a facet to a J2EE project
Changing the version of a facet