现在由于工作需要,所以对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:
- Name: PDT
- URL: http://downloads.zend.com/pdt
- 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之旅。