Error phenomenon
When using idea to import a new project or upgrade idea or create a new project, the following exception message will appear:
Error:java: Compilation failed: internal java compiler error
Cause of error
This error is mainly caused by the JDK version. There are two reasons: the compiled version does not match, and the current project JDK version does not support.
View the JDK of the project
File -> Project Structure-> Project Settings -> Project or use the shortcut Ctrl+Alt+shift+S to open the JDK configuration of the project:
Check whether these two points are consistent with the target JDK.
View the JDK of the project
Click modules in the figure above to view the corresponding JDK version:
View java compiler version
When importing Java projects, the probability of this problem is high.
To solve this problem, reopening or modifying the contents of the POM file (Maven project) is likely to cause the JDK version to change back to 1.5. If it is a maven project, you can specify JDK related information in the POM file:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
Read More:
- Errorjava Compilation failed internal java compiler error [Solved]
- [Solved] java: Compilation failed: internal java compiler error
- [Solved] O2oa compile error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
- Idea create Maven project Error: [error] no longer supports source option 1.5. Please use version 1.6 or higher, and the idea reports an error: error: Java does not support the error of release version 5
- IDEA-Error java error release version 5 not supported (How To Fix)
- Java Error | Error:java: Compilation failed: internal java compiler error
- Maven plugin development report error- plugin:3.2 :descriptor fai
- Fatal error compiling: invalid target release: 1.8 [How to Solve]
- [Solved] SpringBoot Pack Project: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- [Solved] ‘build.plugins.plugin.version‘ for org.springframework.boot:spring-boot-maven-plugin is missing.
- maven.TestGenerateMojo.execute(TestGenerateMojo.java:65) [How to Solve]
- Springboot Project: How to Introduces Local Jar Package
- MVN compile Error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin…
- [Solved] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on
- [Solved] IntelliJ idea error: error: Java does not support release 5
- How to Solve Errors encountered by maven
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- [Maven] maven filtering OTS parsing error incorrect file size in WOFF head [Two Methods to Solve]
- [Solved] java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
- Error assembling War: webxml attribute is required