eclipse 安装PDT

来源:互联网 发布:家暴原因数据统计 编辑:程序博客网 时间:2024/06/09 16:58

PDT是有zend公司提供的eclipse插件。

项目见:http://www.zend.com/en/company/community/pdt/

当然zend有自己的zend studio,而且是收费,所以PDT的功能没有其全面,功能比较见:http://www.zend.com/products/studio/comparison。

这里提供了两种使用方法,

一种是直接下载已经build好的包,http://www.zend.com/en/company/community/pdt/downloads。

一种是通过eclipse安装pdt插件。

he PHP plug-ins are included in the all-in-one package. 
Instructions:

  • 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之旅



0 0
原创粉丝点击