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

相關文章
相關標籤/搜索