简体   繁体   English

Tomcat 7.x和在JDK 1.5上编译的代码

[英]Tomcat 7.x and code compiled on JDK 1.5

From this link looks like minimal Java version supported by Tomcat 7.x is 1.6 but maybe somebody try to check this requirement and use inside webapp jars compiled on JDK 1.5? 这个链接看起来像被Tomcat 7.x的支持最少的Java版本是1.6,但也许有人尝试检查这一要求,并在JDK 1.5编译的web应用程序里面罐子使用?

Is it works? 可行吗? Or not works at all? 还是根本不起作用? Maybe works with limitations? 也许有局限性吗?

Thanks in advance. 提前致谢。

I'm not quite sure I understand what you mean with "use inside webapp jars compiled on JDK 1.5". 我不太确定我是否理解“在JDK 1.5上编译的webapp jar中使用”的意思。 But it seems you mix up two things: 但似乎您混淆了两件事:

  • To run Tomcat 7.x, you'll need at least JRE or JDK 1.6. 要运行Tomcat 7.x,您至少需要JRE或JDK 1.6。

  • However, you can use any JAR file, which was originally compiled for an earlier Java version as they are upwards compatible. 但是,您可以使用任何JAR文件,这些文件最初是为早期Java版本编译的,因为它们是向上兼容的。

So if you're interested in using some older jar file, there's no problem. 因此,如果您有兴趣使用一些较旧的jar文件,则没有问题。

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

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