Method 1
1. Confirm to configure Maven
Find the path in Maven home path and find the Maven address \ conf \ setting xml
Select your own JDK version
<profile>
<id>development</id>
<activation>
<jdk>1.8</jdk>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
Restart idea
Method 2
In project POM Specify the JDK version in the XML file
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
Read More:
- 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)
- IntelliJ idea compilation error: Error:java : Compilation failed: internal java compiler error
- IntelliJ idea error: e rror:java : invalid source distribution: 11 problem resolution
- [How to Solve] Idea prompt does not support Lombok
- How to Solve IntelliJ IDEA Error: Cannot determine path to ‘tools.jar‘ library for 17 (C:\Program Files\Java\jd…
- [Solved] IntelliJ IDEA Start tomcat Error: Disconnected from server
- [Solved] IDEA java compile error: Error:java: Compilation failed: internal java compiler error
- [Solved] IntelliJ IDEA Start Error: Failed to create JVM.JVM Path
- [Solved] IDEA Add maven Project Error: Error:(3,21)java: Package javax.servletdoes not exist
- [Solved] IDEA Start Porject Error: java: Compilation failed: internal java compiler error
- IDEA Compile Error: java Compilation failed internal java compiler error
- Fatal error compiling: invalid target release: 1.8 [How to Solve]
- [Solved] java: Compilation failed: internal java compiler error
- [Solved] IDEA Run Error: Error:java: Compilation failed: internal java compiler error
- [Solved] IDEA Error: java Compilation failed internal java compiler error
- [Solved] IDEA springboot Startup Error: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path
- [Solved] IDEA startup Error: Java lang.StackOverflowError
- [Solved] IDEA Error(15, 16) java Program Pack sun.misc does not exsit or import sun.misc.BASE64Decoder Cannot find
- [Solved] IDEA Compile Error: java: Compilation failed: internal java compiler error