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 in the Properties window .
- In the JDK Compliance section, select the desired Compiler compliance level .
- Click Apply and then Ok .
