Eclipse安裝pdt方法

現在由於工作需要,所以對PHP還得重新研究一下,對現有的系統進行修改、更新。但在最新版本的Eclise Juno上安裝PDT時出現了一個問題,就是無法通過 Help-> Software Updates-> Find and Install  進行安裝和更新。以下是從網站找到的解決辦法,以備參考。

 

官方的安裝方法是:

  • Open Eclipse and go to Help-> Software Updates-> Find and Install
  • Select "Search for new features to install" and click "Next"
  • Create a New Remote Site with the following details:
  • Check the PDT box and click "Next" to start the installation

但是發現運行後提示錯誤:

An error occurred while collecting items to be installed 
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). 
No repository found containing: osgi.bundle,org.zend.php.debug.debugger,5.3.18.v20110322 
No repository found containing: osgi.bundle,org.zend.php.debug.debugger.linux.x86,5.3.18.v20110322
No repository found containing: org.eclipse.update.feature,org.zend.php.debug_feature,5.3.18.v20110322

這時可以嘗試使用下面的方法:

1. 在電腦上建立目錄:localSite

2.  從http://downloads.zend.com/pdt 下載content.jar, artifacts.xml, artifacts.jar三個文件放到localSite文件夾下

3. 編輯artifacts.xml文件,把裏面的"${repoUrl}" 替換爲"http://downloads.zend.com/pdt"

4. 將artifacts.xml打包到artifacts.jar裏;就是修改後直接拖到artifacts.jar裏面就可以了.

5. 打開Eclipse,Help > Install New Software > Add > Local 選擇localSite然後開始安裝。

6. 安裝完成,重啓Eclipse開啓你的PHP之旅。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章