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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Running AEM 6.5 with JDK 11? | AEM Community Blog Seeding




Running AEM 6.5 with JDK 11? by Asutosh Jena


While running AEM 6.5 with Java 11 we ran into several issues especially with environment stability. This post outlines some of the items we all need to be aware of and address when using Java 11 with AEM 6.5

The Java Common Annotations module was removed from Java 11, so you need to add javax.annotation-api as a dependency.





If you are seeing blank pages after deploying or bundle install on AEM it’s possible it’s happening due to
You can resolve this by editing to /crx-quickstart/conf/ and update


Since Java 9 Modules to make reflection work you need to allow it explicitly with --add-opens JVM option. Without it you may get errors like following:
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make ClassLoader.defineClass accessible: module java.base does not "opens java.lang" to unnamed module

You can address this by adding some of the commonly accessed packages by adding following to your AEM start script’s JVM options:

--add-opens=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-opens=java.base/ --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.xml/ --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/

Read Full Blog

Running AEM 6.5 with JDK 11?


Please use this thread to ask the related questions.


Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies