myEclipse項目轉成Eclipse開發

來源:互聯網
上載者:User

標籤:style   color   io   ar   java   sp   檔案   on   bs   

這裡說一種把myEclipse項目轉成Eclipse項目繼續開發 


1.  請首先確保你的eclipse是javaee版本的,或者已經安裝看wtp外掛程式 


2.  然後修改eclipse工程下的.project檔案: 

3.在<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> 
4. 在<buildSpec>< ildSpec>中加入 
    <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 以及源碼路徑 ,參考附件圖片
6. 第5步沒有的話,找到項目的.setting目錄,修改org.eclipse.wst.common.component  裡面的 
<wb-module   deploy-name= "Demo "> 
<wb-resource   deploy-path= "/ "   source-path= "/WebRoot "/> 

這兩個即可,deploy-name   為工程名,source-   path= "/WebRoot "eclipse下預設為WebContent修改為WebRoot

myEclipse項目轉成Eclipse開發

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.