将Tomcat 9添加到eclipse [英] Add Tomcat 9 to eclipse

查看:256
本文介绍了将Tomcat 9添加到eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将tomcat 9下载并安装到了我的机器上,但是在Eclipse> Window> Preferences> Server> Runtime Environment上,单击Add之后,我仅看到Tomcat 7和Tomcat 8,而没有看到Tomcat 9。



我做了什么:
1)将tomcat 9安装到本地服务器上;
2)将月食更新至火星(最新日期为2015-11-25);
3)安装了Eclipse JST服务器适配器和 JST服务器适配器扩展



注意:
使用tomcat 9的目的是是唯一明确支持Java 8及更高版本的版本,而我的Web应用程序正在使用Java8。(



请让我知道我错过的任何配置!

解决方案

这里要注意两点:




  • Tomcat 9尚未发布。不是最终版本。如果您查看官方的网站,您将看到唯一可用的版本是M1版本。因此,Eclipse WTP不支持此早期版本。


  • Tomcat 9不是唯一明确支持Java 8的版本。在该页面中,您将看到支持Java版本:8及更高版本 ,此上下文意味着它仅正式支持Java 8及更高版本。它不是 的意思,但这是唯一支持Java 8的版本。从理论上讲,您应该可以使用任何Tomcat版本,实际上 Tomcat 8可以很好地运行,因为它支持Java 7及更高版本。多数使用Java8 + Tomcat组合的人都在使用Tomcat8。Tomcat8还具有Eclipse WTP支持。



I have downloaded and installed tomcat 9 to my machine, but on Eclipse > Window > Preferences > Server > Runtime Environment, after clicking on Add, I see only Tomcat 7 and Tomcat 8, but not Tomcat 9.

What I have done: 1) installed tomcat 9 to local server; 2) updated eclipse to Mars (latest as of 2015-11-25); 3) installed eclipse "JST Server Adapters" and "JST Server Adapters Extensions"

Note: My purpose of using tomcat 9 is it seems to be the only version that explicitly support java 8 and later, and my web app is using java 8. (http://tomcat.apache.org/whichversion.html) I also have tomcat 7 exist in project but I also want to keep it in the machine, not to delete it.

Please see screenshot.

Please let me know about any config that I missed!

解决方案

There are two things to note here:

  • Tomcat 9 is not released yet. Not a final version that is. If you check the official website, you will see that the only available version is an M1 version. Hence there is no support from Eclipse WTP for this early version. It will come soon, but not yet.

  • Tomcat 9 is not the only version that explicitly supports Java 8. If you check this page, you will see that "Supports Java version: 8 and later", which in this context means, that it officially support only Java 8 and above. It does not mean however this is the only one supporting Java 8. Theoretically you should be able to use any Tomcat version, in practice a Tomcat 8 will work perfectly well, since it support Java 7 and above. The majority of people with a Java8 + Tomcat combination are using Tomcat 8. Tomcat 8 also has Eclipse WTP support.

这篇关于将Tomcat 9添加到eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆