MyEclipse项目导入到Eclipse的方法

来源:互联网 发布:ipadpro10.5办公软件 编辑:程序博客网 时间:2024/05/19 00:08
1.请首先确保你的eclipse是javaee版本的,或者已经安装看wtp插件

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

3.在<natures></natures>中加入
Java code
?
1
2
3
4
  
    <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>


4.在<buildSpec></buildSpec>中加入 
Java code
?
1
2
3
4
5
6
7
8
9
10
    <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>


5.刷新项目,项目->右击->Properties->Project Facets->Modify Project,选择Java和Dynamic Web Module
配置Context Root 和Content Directory 以及源码路径
0 0
原创粉丝点击