1 error: error: (44,73) lambda expression is not supported in Java: – source 1.7
Error analysis: the source part of the project reports an error
At this time, the Java class also reports an error: usage of API documented as @ since 1.8 + more
Solution: file = & gt; project structure = & gt; the language level in sources in the right column of modules is changed from ‘7 – diamond, arm…’ to ‘8 – Lambdas, type annotations, etc’ = & gt; apply = & gt; OK
At this time, the Java class error disappears
2 restart, error report: Error:java : Compilation failed: internal java compiler error
Solution: file = & gt; settings = & gt; search for java compiler and change the corresponding JDK version to 1.8
Restart my project, normal startup
3. In developing springboot project, idea should ensure the consistency of JDK, otherwise, it may cause a series of project startup problems due to different JDK versions
3.1 assurance pom.xml JDK version consistency in file
3.2 ensure the consistency of project and modules (sources and dependencies) progress payment Version (file = & gt; project structure)
3.3 ensure JDK version consistency of java compiler (file = & gt; settings = & gt; search for java compiler)
Read More:
- Java: compilation failed: internal java compiler error and invalid source distribution resolution
- JAVA lambda Syntax error on tokens, Expression expected instead
- Error in idea compilation: java.lang.OutOfMemoryError Java heap space and java.lang.StackOverflowError
- How to Fix Warning: Statement lambda can be replaced with expression lambda
- Idea error: Java: compilation failed: internal java compiler error
- Eclipse .java File Syntax error, parameterized types are only available if source level is 1.5 or
- When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error
- Java idea Compilation failed: internal java compiler error
- Solutions to error: Java: compilation failed: internal java compiler error
- Error:java: Compilation failed: internal java compiler error
- Idea Tomcat start error Error:java : Compilation failed: internal java compiler error
- Diamond types are not supported at this language level appears in IntelliJ
- Error: Java: error: release version 5 not supported solution to run error
- IntelliJ idea error: Java: compilation failed: solution to internal java compiler error
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH
- Idea error: error: Java: error: release 5 is not supported
- The use of C + + template function and lambda expression
- idea Error:java: Compilation failed: internal java compiler error
- An error is reported when executing MVN. The diamond operator is not supported in source-1.5