Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimum Jetty version compatible with Java 11

What is the minimum jetty version compatible with Java11 ?

I am currently on Jetty6.1.3 that runs on Java7. I tried simply upgrading jre and related dependencies but its not working.

like image 221
Ashish Sinha Avatar asked Oct 28 '25 06:10

Ashish Sinha


1 Answers

Eclipse Jetty

The Eclipse Jetty web site says that both Jetty 10 and 11 are built for Java 11 at a minimum.

Jetty Version Servlet API License Java
Jetty 9.4.x 3.1 JavaEE 8
javax.servlet.*
Java 8
Jetty 10.0.x 4.0 JavaEE 8
javax.servlet.*
Java 11+
Jetty 11.0.x 5.0 JakartaEE 9
jakartaee.servlet.*
Java 11+

Because of the transition from Oracle Corp to the Eclipse Foundation (Java EE becoming Jakarta EE), and the ensuing change in package names from javax.* to jakarta.*, the two Jetty versions 10 & 11 are functionally identical. The two versions are developed in parallel. The only significant difference is the package name.

Apache Tomcat

By the way, Apache Tomcat is doing the same, with parallel versions 9 and 10.0, both supporting 8+. They use the javax and jakarta package naming, respectively.

The next version of Tomcat, version 10.1.x requires Java 11+. This next version of Tomcat will support the next versions of Jakarta 10 technologies still under development, such as Servlet 6. See the Which version? page on Tomcat site.

Upgrade to Jetty 10 on Java 11

You may be able to do a direct upgrade by going to Jetty 10 on Java 11.

like image 133
Basil Bourque Avatar answered Oct 31 '25 00:10

Basil Bourque



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!