Problem while project is pointing to old JVM.


[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] 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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
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?

Leave a Reply

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