亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何使eclipse工程導入myeclipse

如何使eclipse工程導入myeclipse

蕭十郎 2019-03-01 07:03:36
如何使eclipse工程導入myeclipse
查看完整描述

2 回答

?
SMILET

TA貢獻1796條經驗 獲得超4個贊

工具:

myeclipse

方法:

1. 在myeclipse中建立一個java web工程。File-->New-->Web Project

2. 開始導入工程中的文件。File-->import

3. 因為eclipse中的web部署文件夾叫做webContent,而myeclipse中叫做webRoot,針對這個不同需要做一系列的修改。首先在新建的工程上點擊右鍵,選擇"Properties",出現以下對話框。請注意紅框區域,一般都需要修改。

4.將以上webRoot的地方全部改為webContent即可。



查看完整回答
反對 回復 2019-03-07
?
江戶川亂折騰

TA貢獻1851條經驗 獲得超5個贊

具體步驟:
1、通過eclipse的import方式,將web項目導入。
2、打開.project文件,將原配置文件中的<buildSpec>...</buildSpec><natures>...</natures>部分替換為以下內容: <buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.Jsdt.core.javaScriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDeScriptorValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.Jsdt.core.JsNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures> 3、刷新項目,項目->右鍵->Properties->Project Facets->Configuration->custom,選擇Java和Dynamic Web Module(注意版本,如果無法確定自己的版本,請從高往低測試)

4、修改.settings目錄(可在navigator視圖下查看)中org.eclipse.wst.common.component文件的如下內容:
<wb-resource deploy-path="/" source-path="/WebContent"/>
改為: <wb-resource deploy-path="/" source-path="/WebRoot"/>
5、刷新項目,然后查看classpath是否有問題。
6、最后,刪除eclipse默認的WebContent目錄,Myeclipse默認的是WebRoot。



查看完整回答
反對 回復 2019-03-07
  • 2 回答
  • 0 關注
  • 910 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號