Changing the Java compiler version for a Java EE project

You can change the version of Java™ used in a Java EE 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-Java EE project, such as a Java project, see Java Compiler.

To change the Java compiler version, complete the following steps:

  1. In the Project Explorer view of the Java EE perspective, right-click the project and then select Properties.
  2. Select the Project Facets page in the in the Properties window. This page lists the facets in the project and their versions.
  3. Click Modify Project.
  4. Double click the version number next to theJava facet to select a different level of Java compiler.
  5. Click Finish to close the Modify Faceted Project window and then click OK.

Related concepts
Project facets
Related tasks
Adding a facet to a Java EE project
Changing the version of a facet