Recommended solution: thanks to another blogger in the comments area, Fu moon, for his solution: https://blog.csdn.net/qq_ 42583206/article/details/108375173
If the problem is solved in the above way, it can be ignored below.
—————————————————————————————————————————————————————————————————————————————–
A new Maven project is created in IntelliJ idea. The running error is as follows: error: Java does not support release 5
Jdk9 is used for local operation. When testing Java stream operation, the error should be that the Java version used in the project compilation configuration is wrong. You need to check the Java compilation version configuration used in the project and environment.
Click “file” – & gt; “project structure” in IntelliJ to see if the Java version in “project” and “module” columns is consistent with the local version
If not, change to the local java version.
Click “Settings” – & gt; “bulid, execution, deployment” – & gt; “java compiler”, and set the target bytecode version to the local java version. (you can configure project bytecode version to local java version once and for all in default settings)
Default Settings:
After the above two steps have been configured, the above error will not be reported after re running.
Once and for all reform through labor:
Thanks to another blogger in the comments area, fumion, for his proposal: https://blog.csdn.net/qq_ 42583206/article/details/108375173
Read More:
- Java in idea: warning: source release 11 needs to be resolved by target release 11
- Idea error: error: Java: error: release 5 is not supported
- appear Error:java : javacTask: source release 1.7 requires target release 1.7
- IntelliJ idea debugging Java 8 stream
- IntelliJ idea error: Java: compilation failed: solution to internal java compiler error
- IntelliJ idea code did not report an error, compilation failed
- [solved] error: module not specified (IntelliJ idea)
- IntelliJ idea error: package not found or symbol not found
- [error] error handling of IntelliJ idea
- Error: Java: error: release version 5 not supported solution to run error
- javac Task Error source release 1.7 requires target release
- [Solved] IntelliJ IDEA Compile Groovy Error: GroovyRuntimeException: This script or class could not be run.
- IntelliJ idea startup error: error statuslogger log4j2 could not find a logging implementation
- [Java] error: Java: error: release 13 is not supported
- The process of solving Intellij IDEA can’t load jvm DLL error at a time
- Upgrade to IntelliJ idea 2021.2 and start the project with an error
- Git uploads local IntelliJ idea project to GitHub
- IntelliJ idea / eclipse automatically generate author annotation signature
- IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea