Changing the JDK Compliance Level

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.
  1. In the Project Explorer view, right-click on the project and then select Properties.
  2. Select the Java Compiler page in the Properties window.
  3. In the JDK Compliance section, select the desired Compiler compliance level.
  4. Click Apply and then Ok.


  5.  
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.
  1. In the Project Explorer view, right-click on the project and then select Properties.
  2. Select the Project Facets page in the Properties window. This page lists the facets in the project and their versions.
  3. Select the desired version number for the Java facet.
  4. Click Apply and then Ok.


  5.  

No comments: