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.
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 8javax.servlet.* |
Java 8 |
| Jetty 10.0.x | 4.0 | JavaEE 8javax.servlet.* |
Java 11+ |
| Jetty 11.0.x | 5.0 | JakartaEE 9jakartaee.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.
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.
You may be able to do a direct upgrade by going to Jetty 10 on Java 11.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With