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.
- In the Project Explorer view, right-click the project and then
click Properties.
- In the Properties window, click Project Facets.
The Project Facets page lists the facets in the project.
- Click Add/Remove Project Facets.
- In the Add/Remove Project Facets window, click the Java facet
to select it.
- Select the level of Java compiler to use from the drop-down box
next to the Java facet.
- Click Finish.
- Click OK.