Using JDK 11 to develop apps with the Atlassian SDK is not yet supported

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Using JDK 11 with the Atlassian SDK is not yet supported - AMPS-1541.

Environment

Atlassian SDK <= 8.2 ( as of this article, see bug report for eventual version supporting JDK 11 ).

Diagnosis

Attempting to compile with the Atlassian SDK and JDK 11 results in the following:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 $ rm -rf target && atlas-package [INFO] Project POM found Executing: /Applications/Atlassian/atlassian-plugin-sdk-8.2.6/apache-maven-3.5.4/bin/mvn package -gs /Applications/Atlassian/atlassian-plugin-sdk-8.2.6/apache-maven-3.5.4/conf/settings.xml Exception in thread "main" java.lang.NullPointerException at java.base/java.io.Reader.<init>(Reader.java:167) at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:72) at org.twdata.maven.trap.Dispatcher.getInterceptorsResourceBufferedReader(Dispatcher.java:67) at org.twdata.maven.trap.Dispatcher.getMavenInterceptors(Dispatcher.java:45) at org.twdata.maven.trap.Dispatcher.main(Dispatcher.java:21) at org.twdata.maven.trap.App.main(App.java:18)

Solution

Continue using JDK 8 to compile. The resulting app should work in JDK 11 without issue

Updated on April 17, 2025

Still need help?

The Atlassian Community is here for you.