简体   繁体   English

在Java 6上运行Jetty 9

[英]Running Jetty 9 on Java 6

I work for a corporation that won't upgrade from JRE 6 to JRE 7 on our servers. 我在一家公司工作,不会在我们的服务器上从JRE 6升级到JRE 7。 I have successfully developed some code that works on JRE 7 using Jetty 9. However, I can't run this code on the corporation server. 我已经使用Jetty 9成功开发了一些适用于JRE 7的代码。但是,我无法在公司服务器上运行此代码。 I was wondering if anyone out here knew of a way to run Jetty 9 on JRE 6. I specifically need the HTTPConfiguration class from Jetty 9. 我想知道是否有人在这里知道在JRE 6上运行Jetty 9的方法。我特别需要Jetty 9中的HTTPConfiguration类。

The only potential thing I can think of would be to download Jetty, set it to a 1.6 compliance and work from that. 我能想到的唯一潜在的事情就是下载Jetty,将它设置为1.6合规性并从中开始工作。 I'm really hoping (with a shot in the dark) that someone has a better idea. 我真的希望(在黑暗中拍摄)有人有更好的主意。

No, Jetty 9 required Java 7 since the servlet api (servlet 3.1) requires Java 7. While 9.0 could have in theory worked on Java 6 our intent had been that 9 would be servlet 3.1 and it wasn't until 9.1 that we made the servlet api switch...which was mostly due to timing issues more than anything. 不,Jetty 9需要Java 7,因为servlet api(servlet 3.1)需要Java 7.虽然9.0理论上可以在Java 6上运行,但我们的意图是9将是servlet 3.1而直到9.1我们才创建了servlet api switch ...这主要是由于时间问题比什么都重要。

[update] Jetty 9.2.x is Java 7 and Jetty 9.3.x onwards will require Java 8. This is largely due to requirements of supporting the HTTP/2 protocol which Jetty 9.3.x does...in spades. [更新] Jetty 9.2.x是Java 7,Jetty 9.3.x以后将需要Java 8.这主要是由于支持Jetty 9.3.x所做的HTTP / 2协议的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM