Changing the JDK Compliance Level
You can change the compiler compliance level by going to the Java Compiler page as shown in the steps below.
- In the Project Explorer view, right-click on the project and then select Properties.
- Select the Java Compiler page in the Properties window.
- In the JDK Compliance section, select the desired Compiler compliance level.
- Click Apply and then Ok.

If your project is a facet-enabled project, you will also need to set the Java version in the Project Facets page by doing the following.
- In the Project Explorer view, right-click on the project and then select Properties.
- Select the Project Facets page in the Properties window. This page lists the facets in the project and their versions.
- Select the desired version number for the Java facet.
- Click Apply and then Ok.

No comments:
Post a Comment