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?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Cross_Leaf,
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.
The build environment is Linux-based, derived from Ubuntu 22.04.
Apache Maven 3.9.4 is installed.
The Java versions installed are Oracle JDK 11.0.22 and Oracle JDK 8u401.
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!
Hi,
All version are not supported, you may refer document for version compatibility https://experienceleague.adobe.com/en/docs/experience-manager-65/content/implementing/deploying/intr...
Thanks
Hi @Cross_Leaf,
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.
The build environment is Linux-based, derived from Ubuntu 22.04.
Apache Maven 3.9.4 is installed.
The Java versions installed are Oracle JDK 11.0.22 and Oracle JDK 8u401.
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!
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.