How to compatible the app with Confluence DC 9.0 and JDK 17?

It is a brand new empty app project (generated by JDK 8 and SDK 8.2.6).
In pom.xml, I configured an external mysql database, and changed the Confluence version to 9.0.1.
However, when I use atlas-run.bat to start Confluence under JDK 17, the console shows many errors and Confluence fails to start. :face_with_spiral_eyes:

Does anyone know how to solve this?
How can the app code be compatible with Confluence 9? Is there any official Atlassian demo projects for the Confluence 9 and JDK 17?
Does it mean that we can only develop apps under JDK 8?

I can confirm that it is possible to develop using Java 17 apps for Confluence 9. However, I personally don’t use atlas-run because I find Docker way better. Also, even the last SDK (which is 8.2.7 and some years old) still creates projects for Confluence 6 with really outdated libraries and dependencies, so I wouldn’t recommend it anyway.

1 Like