Eclipse安装pdt方法

1 篇文章 0 订阅
1 篇文章 0 订阅

现在由于工作需要,所以对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之旅。

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值