Expand my Community achievements bar.

SOLVED

AEM Quickstart JAR not compatible with JDK 17

Avatar

Level 4
Level 4

Hey folks,

 

Why does the quickstart jar not work with JDK 17?

 

Loading quickstart properties: default
Loading quickstart properties: instance
java.lang.Exception: Quickstart does not run with newer versions as Java Specification 17 VM, but your VM (Java HotSpot(TM) 64-Bit Server VM / Oracle Corporation) reports java.specification.version=22
at com.adobe.granite.quickstart.base.impl.Main.checkEnvironment(Main.java:1056)
at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:645)
at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:980)
Quickstart: aborting

 

Is there any limitation on AEM not leveraging latest features from Java 17?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @_CL,

The AEM as a Cloud Service SDK should be built with a distribution and version of Java supported by Cloud Manager’s build environment. (Refer The AEM as a Cloud Service SDK)

Cloud Manager builds and tests your code using a specialised build environment.

Using a Specific Java Version

By default, projects are built by the Cloud Manager build process using the Oracle 8 JDK, but AEM Cloud Service customers are strongly advised to set the JDK version used to execute Maven to 11.

Simply put the JDK 17 is not supported by AEM!

Hope this helps!

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @_CL,

The AEM as a Cloud Service SDK should be built with a distribution and version of Java supported by Cloud Manager’s build environment. (Refer The AEM as a Cloud Service SDK)

Cloud Manager builds and tests your code using a specialised build environment.

Using a Specific Java Version

By default, projects are built by the Cloud Manager build process using the Oracle 8 JDK, but AEM Cloud Service customers are strongly advised to set the JDK version used to execute Maven to 11.

Simply put the JDK 17 is not supported by AEM!

Hope this helps!

Avatar

Level 3

Additionally you should keep your eye peeled for this session at AdaptTo() at the end of October: https://adapt.to/2024/schedule/aem-65-and-java-17

 

AEM only supported JDK8 up to 6.5, and now only supports JDK8 and JDK11.  Making AEM support JDK17 will likely result in an entirely new version of AEM to differentiate between what works on prior JDKs and what has features deprecated so that it works on JDK17.