打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
将MyEclipse项目导入到Eclipse中

将MyEclipse项目导入到Eclipse中

       由于以前的项目都是用myeclipse开发的,现在想换成eclipse来开发。但是项目导入到eclipse中发现该项目并不是web项目,也不能部署到tomcat里面去。

       刚在csdn上面看到一段回复,试了一下,果然可以。分享一下!

       1.请首先确保你的eclipse是javaee版本的,或者已经安装看wtp插件 

       2.然后修改eclipse工程下的.project文件: 

          在 <natures> </natures>中加入 

    <nature>org.eclipse.wst.common.project.facet.core.nature</nature>

    <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>

    <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>

   在 <buildSpec> </buildSpec>中加入

     <buildCommand>

        <name>org.eclipse.wst.common.project.facet.core.builder</name>

        <arguments>

        </arguments>

    </buildCommand>

    <buildCommand>

        <name>org.eclipse.wst.validation.validationbuilder</name>

        <arguments>

        </arguments>

    </buildCommand>

3.刷新项目,项目->右击->Properties->Project Facets->Modify Project,选择Java和Dynamic Web Module 
          配置Context Root 和Content Directory 以及源码路径。

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【140318-02】如何将MyEclipse项目导入到Eclipse
把Myeclipse的项目导入eclipse编译步骤
Myeclipse导入项目无法部署或者丢失了.setting文件夹怎么办
maven项目从myeclipse8.5迁到myeclipse10,无法引入工程
Eclipse中jsp、js文件编辑时,卡死现象解决汇总
eclipse或Myeclipse中web项目没有run on server时怎么办?
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服