. Advertisement .
..3..
. Advertisement .
..4..
I got the error java javactask source release 1.7 requires target release 1.7 in my program.
I have try several way, but it wasn’t solved. Please tell me the cause of this error and the method to fix it as soon as possible. Thank you very much.
The cause: The error java javactask source release 1.7 requires target release 1.7 occurred when compiling in idea, specifically while compiling module ‘qqqq’.
Solution:
In order to set the correct version of the byte code version of the associated Module,
Set setting>>Compiler>>Java Compiler in idea.
You must include the following code in the pom.xml setup file if it is a maven project:
This can solve the issue of the maven project compiling automatically switching back to jdk1.5.