在Myeclipse中配置tomacat

Myeclipse版本:2014专业版 64位  提取码:jmd3 

tomacat7.0.88 非安装版  提取码:xx8f

首先将tomacat下载解压到任意文件夹下,路径中最好没有中文。

打开Myeclipse

window——>Preferences—>MyEclipse —>Servers —> Tomcat —> tomcat 7.x

在Myeclipse中配置tomacat

在这里天Tomcat在电脑中的路径。我的路径是:I:\Program Files (x86)\tomacat

并点选Enable。默认的是Disable。不改为Enable无法使用哦!

然后点击应用

在Myeclipse中配置tomacat

为tomcat添加jdk

选择Tomcat 7.X下的JDK,然后点击add出现一幅图

在Myeclipse中配置tomacat

在标记的地方添加jre的地址

在Myeclipse中配置tomacat

接着设置window —>preferences —>Java下的 Installed JRES,添加jdk1.7.0在电脑中的地址,并勾选之后点击ok

在Myeclipse中配置tomacat

启动Tomcat测试

在Myeclipse中配置tomacat

在网页中输入http://localhost:8080/出现如下图就说明测试成功了

在Myeclipse中配置tomacat

 

菜单栏 window —>preferences —>General —> Workspace,将标记的地方改为other UTF-8;为了中文字符可以显示出来。

在Myeclipse中配置tomacat