Search code examples
javajakarta-ee

Which Jakarta ee version is compatible with Java 10?


I am currently migrating a project to jdk 10, and since the Java.xml.* have been deprecated, I have used Jakarta ee instead.

Which Jakarta ee version is compatible with Java 10?


Solution

  • Which Jakarta EE version is compatible with Java 10?

    I don't know if that is actually an answerable question. Java / Jakarta EE is fundamentally a set of specifications. The specifications do not prescribe a specific Java SE platform or compatibility requirements1.

    So what you should really be doing is selecting the EE implementation you intend to use (e.g. Glassfish, JBoss, WebSpere, Weblogic, Wildfly and so on) based on the versions of Java that they require.

    Having said that, you should not be targeting Java 10 as an execution platform. It has reached its end of life. You should either target Java 11 (which currently the latest Java LTS release) or the latest non-LTS release. But beware that non-LTS Java releases only have a life time of 6 months.

    At this point in time (2 years after its end-of-life) it is likely that most Java EE implementations will no longer (officially) support Java 10 as an execution platform.


    1 - Exception: the draft for Jakarta EE 9 requires that the underlying Java platform supports at least Java SE 8.