The following error occurred while compiling Java code using IDEA:
Error: Java: javacTask: source release 1.7 requires target release 1.7
Above:
When such a problem occurs, you can set it in Settings:
Just set the compiler version to 1.7 here. The first place is where the project is set and the second place is where the module is set.
Error: Java: javacTask: source release 1.7 requires target release 1.7
Above:
When such a problem occurs, you can set it in Settings:
Just set the compiler version to 1.7 here. The first place is where the project is set and the second place is where the module is set.
To build with Maven, specify the compiled version of Java directly in the POM, adding the following code:
<build>
<finalName>5_mybatis_maven</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
Then select pom.xml and right click, and Reimport will tell Maven to download the corresponding plug-in:
Now to compile, is not to see the rainbow in the wind and rain!
Reference link:
http://stackoverflow.com/questions/12900373/idea-javac-source-release-1-7-requires-target-release-1-7
Read More:
- appear Error:java : javacTask: source release 1.7 requires target release 1.7
- Java in idea: warning: source release 11 needs to be resolved by target release 11
- Android studio reported an error in the release package: Lint found fatal errors while assembling a release target
- Maven invalid source release 11
- Execution failed for task :Test:lintVitalRelease/Lint found fatal errors while assembling a release
- Using Mocha to test can not find module ‘. /build/release/scrypt’ (Fixed)
- Waiting for another pilot command to release the startup lock
- Oracle data file space release
- IntelliJ idea error: error: Java does not support release 5
- Windows can’t delete the file, indicating that it is in use. (release of document occupation)
- Springboot2.0.4.release report error executing DDL via JDBC statement
- [Java] error: Java: error: release 13 is not supported
- ubuntu-how to solve the error-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
- Error: Java: error: release version 5 not supported solution to run error
- Idea error: error: Java: error: release 5 is not supported
- Why interview requires reading the source code
- Failed to read artifact descriptor for com.google.errorprone:javac:jar:9+181-r4173-1
- Solving failure executing javac, but could not parse the error
- Browser prompt: Source mapping error: request failed with status 404 Source URL: http://xxx.js Source mapping URL: jquery.min.map
- Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED