MyEclipse项目和eclipse项目互相引用的问题

来源:互联网 发布:mac从网页上下载软件 编辑:程序博客网 时间:2024/05/22 14:17

   一、Myeclipse web项目 导入到eclipse web项目中

      (1).请首先确保你的机器上的eclipsejavaee版本的,或者已经安装看wtp插件 
      (2)
.按一般步骤导入到eclipse中,Close Project,然后修改eclipse workplace中对应项目中.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).Open Project,然后刷新项目,在项目->右击->Properties->Project Facets->Modify Project,选择JavaDynamic Web Module 

                 确定后,打开工程.settings目录,找到org.eclipse.wst.common.component文件,修改一下自己的jsp目录:

                 <wb-resource deploy-path="/" source-path="/WebContent"/>


                  配置Context Root Content Directory 以及源码路径。

原创粉丝点击