Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.5 and JDK11 | AEM Community Blog Seeding

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,369 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,369 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

06-05-2021

BlogImage.jpg

AEM 6.5 and JDK11 by Initialyze

Abstract

We recently switched to Java 11 with AEM 6.5 for some of our customers and ran into several issues especially with environment stability. This post outlines some of the items you need to be aware of and address when using Java 11 with AEM

I’ve organized this post into a short version and a long version. If you’ve already done all the work of updating your pom, dependencies, compiler, plugins, to work with Java 11 but, having environment issues only, the Short version below outlines quick steps that you can take to ensure your AEM instance is stable after builds and deploys.

The Longer version in this article walks through all the things you need to take care of when using Java 11 with AEM in more detail.

The Short Version
The short answer to get these JDK11 and AEM issues resolved to ensure a stable enviroment – make the following changes:

Update sling.properties
Go to /crx-quickstart/conf/sling.properties and update the extra packages & boot delegation to below

org.osgi.framework.system.packages.extra=org.apache.sling.launchpad.api;version=1.2.0,com.sun.org.apache.xpath.internal;version="{dollar}{felix.detect.java.version}" ${org.apache.sling.launcher.system.packages}

org.osgi.framework.bootdelegation=sun.*,com.sun.*,jdk.internal.reflect,jdk.internal.reflect.*

Read Full Blog

AEM 6.5 and JDK11

Q&A

Please use this thread to ask the related questions.

AEM AEMEBlogSeeding Experience Manager