close

[Solved] The compiler compliance specified is 1.6 but a JRE 1.8 is used

Hello Guys, How are you all? Hope You all Are Fine. Today I am facing following waring in my eclipse The compiler compliance specified is 1.6 but a JRE 1.8 is used in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How The compiler compliance specified is 1.6 but a JRE 1.8 is used Error Occurs ?

I am facing following waring in my eclipse.

The compiler compliance specified is 1.6 but a JRE 1.8 is used

How To Solve The compiler compliance specified is 1.6 but a JRE 1.8 is used Error ?

  1. How To Solve The compiler compliance specified is 1.6 but a JRE 1.8 is used Error ?

    To Solve The compiler compliance specified is 1.6 but a JRE 1.8 is used Error First of all You need to Fix Project Properties so that Right-click on your project and select Android Tools then select Fix Project Properties. Now Your issue may be resolved. Second solution is you need to Enable project specific settings. First of all Right-click on your project.select Properties -> Java Compilercheck Enable project specific settingsselect 1.5 or 1.6 from the Compiler compliance settings select box.Now, You can run your project without error.

  2. The compiler compliance specified is 1.6 but a JRE 1.8 is used

    To Solve The compiler compliance specified is 1.6 but a JRE 1.8 is used Error First of all You need to Fix Project Properties so that Right-click on your project and select Android Tools then select Fix Project Properties. Now Your issue may be resolved. Second solution is you need to Enable project specific settings. First of all Right-click on your project.select Properties -> Java Compilercheck Enable project specific settingsselect 1.5 or 1.6 from the Compiler compliance settings select box.Now, You can run your project without error.

Solution 1: Fix Project Properties

First of all You need to Fix Project Properties so that Right-click on your project and select Android Tools then select Fix Project Properties. Now Your issue may be resolved.

Solution 2: Enable project specific settings

If First solution not worked then you need to Enable project specific settings.

  1. First of all Right-click on your project.
  2. select Properties -> Java Compiler
  3. check Enable project specific settings
  4. select 1.5 or 1.6 from the Compiler compliance settings select box.
  5. Now, You can run your project without error.

Solution 3: set Compiler compliance level

You need to set Compiler compliance level. Under Window -> Preferences -> Java -> Compiler, set Compiler compliance level to 1.5 or 1.6.

Solution 4: follow this

  1. Go to the project folder
  2. Then right click on it –> properties -> check off the read only box
  3. then, click ok
  4. Right-click on your project
  5. select "Android Tools -> Fix Project Properties"
  6. Right-click on your project and select "Properties -> Java Compiler", check "Enable project specific settings" and select 1.5 or 1.6 from “Compiler compliance settings” select box. (try all the levels one by one just in case)
  7. Under Window -> Preferences -> Java -> Compiler, set Compiler compliance level to 1.6 or 1.5.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment