eclipse导入myeclipse的web项目无法识别问题解决

(转载)原做者地址:http://www.cnblogs.com/Topless/archive/2011/11/23/2260085.htmlhtml

一、进入项目目录,找到.project文件,打开。 

二、找到<natures>...</natures>代码段。 

三、在第2步的代码段中加入以下标签内容并保存: 

<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>web

四、项目目录下的.classpath文件,把全部Webroot字符串改成WebContent,保存。服务器

五、把目录下webroot的文件夹更名为WebContent。less

六、在eclipse中Java Resources:src目录的Libraries里添加web服务器须要的包,选择BiuldPath----->configure Build Path------>当前窗面下选择选择Add Library----->server Runtime------>选择须要的web服务器eclipse


七、在eclipse的项目上点右键,刷新项目。 

八、在项目上点右键,进入属性(properties) 

九、在左侧列表项目中点击选择“Project Facets”,在右侧选择“Dynamic Web Module”和"Java",点击保存便可。ui

 

这时应该能够在eclipse下正常启动项目了spa