Idea version 2121.2.1
1. JDK configuration problem
Setting project jdk
Setting module jdk
During the setting of compiler jdkthe clean operation was performed after several settings, resulting in @override error. Later, it was found that the compiler was not checked
use compiler from module target JDK when possible
2. Add in POM file
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>8</source> <target>8</target> </configuration> </plugin> </plugins> </build>
Done!
Read More:
- Errorjava Compilation failed internal java compiler error [Solved]
- [Solved] Java: compilation failed: internal java compiler error
- [Solved] Error:java: Compilation failed: internal java compiler error
- [Solved]Error:java: Compilation failed: internal java compiler error
- Java Error | Error:java: Compilation failed: internal java compiler error
- IntelliJ idea compilation error: Error:java : Compilation failed: internal java compiler error
- Compilation failed: internal java compiler error[How to Solve]
- [Solved] Compilation failed: internal java compiler error
- [Solved] IDEA Start Porject Error: java: Compilation failed: internal java compiler error
- [Solved] IDEA java compile error: Error:java: Compilation failed: internal java compiler error
- [Solved] Errorjava Compilation failed internal java compiler error
- IDEA Compile Error: java Compilation failed internal java compiler error
- Errorjava Compilation failed internal java compiler error [How to Solve]
- [Solved] Error:java: Compilation failed: internal java compiler error 解决办法
- [Solved] Error:java: Compilation failed: internal java compiler error
- [Solved] IDEA Error: java Compilation failed internal java compiler error
- [Solved] IDEA Compile Error: java: Compilation failed: internal java compiler error
- [2022 New Solution] Error:java: Compilation failed: internal java compiler error
- [Solved] IDEA Run Error: Error:java: Compilation failed: internal java compiler error
- [Solved] Error:java: Compilation failed: internal java compiler error