We Are Going To Discuss About The compiler compliance specified is 1.6 but a JRE 1.8 is used. So lets Start this Java Article.
The compiler compliance specified is 1.6 but a JRE 1.8 is used
- The compiler compliance specified is 1.6 but a JRE 1.8 is used
Right-click on your project and select
"Android Tools -> Fix Project Properties"
. (if this doesn't work, try the following option)
Right-click on your project and select"Properties -> Java Compiler"
, check “Enable project specific settings” and select
1.5 or 1.6 from the “Compiler compliance settings” select box.
UnderWindow -> Preferences -> Java -> Compiler
, set Compiler
compliance level to 1.5 or 1.6. - The compiler compliance specified is 1.6 but a JRE 1.8 is used
Right-click on your project and select
"Android Tools -> Fix Project Properties"
. (if this doesn't work, try the following option)
Right-click on your project and select"Properties -> Java Compiler"
, check “Enable project specific settings” and select
1.5 or 1.6 from the “Compiler compliance settings” select box.
UnderWindow -> Preferences -> Java -> Compiler
, set Compiler
compliance level to 1.5 or 1.6.
Solution 1
Possible solution:
- Right-click on your project and select
"Android Tools -> Fix Project Properties"
. (if this doesn’t work, try the following option) - Right-click on your project and select
"Properties -> Java Compiler"
, check “Enable project specific settings” and select
1.5 or 1.6 from the “Compiler compliance settings” select box. - Under
Window -> Preferences -> Java -> Compiler
, set Compiler
compliance level to 1.5 or 1.6.
Original Author Romil Patel Of This Content
Solution 2
Go to windows>preference>java>compiler.
Tick the check box “use default compliance setting” then apply and close.
Right-click on the project and go to build path> configure build the path
Under Libraries tab remove JRE System Library and click on add library
select the radio box execution environment and select the environment
Apply nad Close
Original Author Swapnilk Of This Content
Solution 3
Following changes need to be done under folder name of your project: –
.settings
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=disabled
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
Original Author S Satyen Of This Content
Solution 4
I’m working on VSCode and I just made next thing
I changed version in pom.xml to one I installed on computer
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.11</maven.compiler.source>
<maven.compiler.target>1.11</maven.compiler.target>
<java.version>1.11</java.version>
</properties>
Before I had 1.8 and now there is 1.11
Original Author sedub01 Of This Content
Conclusion
So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.