配置_eclipse:项目在myeclipse与eclipse之间迁移

来源:互联网 发布:js随机数1到22 编辑:程序博客网 时间:2024/05/19 17:57

一、将myeclipse中的项目迁移到eclipse中运行需要进行如下配置:

1)Properties——project facets——勾选dynamic web module(要根据tomcat环境选择支持的版本)

2)Properties——deployment assembly——删除webcontant,添加webroot


二、如果jsp报错如下:The superclass"javax.servlet.http.HttpServlet" was not found on the Java Build Path

解决:Build Path-》Java BuildPath->Libraries-> Add Libray...->Server Runtime -》Tomcat Server


三、如果tomcat无法添加项目,且提示版本问题:可以在new新tomcat时选择最新jre