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:
- In the Project Explorer view of the Java EE perspective, right-click the project
and then select Properties.
- Select the Project Facets page in the in
the Properties window. This page lists the facets in the project
and their versions.
- Click Modify Project.
- Double click the version number next to theJava facet
to select a different level of Java compiler.
- Click Finish to close the Modify Faceted
Project window and then click OK.