Getting error - Fatal error compiling: invalid target release: 9 | Community
Skip to main content
September 22, 2023
Solved

Getting error - Fatal error compiling: invalid target release: 9

  • September 22, 2023
  • 3 replies
  • 2406 views

While deploying my code to cloud instance, getting the below build error on core bundle. What can be the issue?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by mahi1729

What version of Java are you using. If you are using jdk 8 and using latest maven compiler compiler plug in with release tag in it perhaps this could be a potential issue. Let us know these details so we can guide you. We use jdk 11 and using release 8 or 11 works fine as part of build process. Release tag is available only since jdk9. So is the reason we suspect jdk could be an issue. Thanks

3 replies

September 22, 2023

hi @goyalkritika  could you provide the logs here

mahi1729
mahi1729Accepted solution
September 23, 2023

What version of Java are you using. If you are using jdk 8 and using latest maven compiler compiler plug in with release tag in it perhaps this could be a potential issue. Let us know these details so we can guide you. We use jdk 11 and using release 8 or 11 works fine as part of build process. Release tag is available only since jdk9. So is the reason we suspect jdk could be an issue. Thanks

kautuk_sahni
Community Manager
Community Manager
September 26, 2023

@goyalkritika Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni