Problem while project is pointing to old JVM.

Trace:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.238 s
[INFO] Finished at: 2017-01-26T08:56:44+05:30
[INFO] Final Memory: 8M/183M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project spring-hello-word: Fatal error compiling: invalid target release: 1.8 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Process finished with exit code 1

Solution for Intellij:

  1. Open module settings
  2. Project Settings -> Project
  3. Update Project SDK: 1.8 (If not then create)
  4. Update Project Language level
Update Project Module Settings

Update Project Module Settings

Was this post helpful?
Let us know, if you liked the post. Only in this way, we can improve us.
Yes
No
Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *