MyEclipse web專案轉換為eclipse web專案
阿新 • • 發佈:2021-07-12
MyEclipse web專案轉換為eclipse web專案(把WebRoot轉換為WebContent)
1、進入專案目錄,開啟.project檔案。增加內容
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
2、開啟專案目錄下的.classpath檔案,把所有WebRoot字串改為WebContent,儲存
3、把專案目錄下WebRoot資料夾改為WebContent。
4. 在eclipse中Java Resources:src目錄的Libraries裡新增web伺服器需要的包
5.在eclipse的專案上點右鍵,重新整理專案
6.在專案上點右鍵,進入屬性(properties)在左側列表專案中點選選擇“Project Facets”,在右側選擇“Dynamic Web Module”和”Java”,點選儲存即可。
修改配置檔案為java1.6
7.新增server
8.選擇BuildPath—–>configure Build Path——>當前窗面下選擇選擇Add Library—–>server Runtime——>選擇需要的web伺服器
9.部署