. Advertisement .
..3..
. Advertisement .
..4..
Hello everyone. I am new in this field, so when facing the error:java: javactask: source release 8 requires target release 1.8, I don’t know how to fix it.
What is the cause and resolution of my issue. Please help me. Thanks a lot.
The cause: Here are two possible causes of the error:java: javactask: source release 8 requires target release 1.8:
-This error message appears if the code in IntelliJ IDEA was created using JDK 1.8 and was unable to find the appropriate JDK compiler.
-When the user inserts wrong Java compiler information in the code, this error also appears.
Solution:
Solution 1: Altering the Project Bytecode Version using the “Settings” Menu
If you use Apache Maven, try the following solution.
Solution 2: Including the Compiler Plug-in inside the “pom.xml” File