Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

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

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Level 5

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

View solution in original post

3 Replies

Avatar

Correct answer by
Level 5

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

Avatar

Administrator

@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