为 Java 和 PHP 设置 Eclipse
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/502838/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Setting up Eclipse for Java and PHP
提问by Click Upvote
I have already installed Eclipse for Java development. I'd also like to install Plugins for PHP, CSS/HTML and Javascript, but all the sites that I've checked only offer a 'All in one' package, so I could either download an all-in-one Java package or an all-in-one PHP package, but not both at the same time.
我已经安装了用于 Java 开发的 Eclipse。我还想为 PHP、CSS/HTML 和 Javascript 安装插件,但我检查过的所有站点都只提供“一体机”包,因此我可以下载一体机 Java 包或一个多合一的 PHP 包,但不能同时使用。
How do I set up my existing installation to also support PHP files?
如何设置现有安装以支持 PHP 文件?
采纳答案by Paul Dixon
I use PHPEclipsewhich can be installed as a regular Eclipse software update
我使用PHPEclipse,它可以作为常规 Eclipse 软件更新安装
The PDTcan also be installed as an update.
For HTML/CSS etc, the WTPcan be installed in a similar fashion.
回答by Joao da Silva
If you already have Eclipse installed, follow the instructions at PDT Installationto install the PDT (PHP Development Tools). This will include the Web Tools Project (WTP), which brings editors and tools for HTML and CSS.
如果您已经安装了 Eclipse,请按照PDT 安装中的说明安装 PDT(PHP 开发工具)。这将包括 Web 工具项目 (WTP),它为 HTML 和 CSS 带来了编辑器和工具。
回答by Mikey3Strings
This issue made me nuts 2. First i downloaded the PDT eclipse, which would not take google plugins or apache ant. Then I downloaded the Eclipse SDK to use java ant GWT and could not load php onto it.
这个问题让我抓狂 2. 首先我下载了 PDT eclipse,它不会使用 google 插件或 apache ant。然后我下载了 Eclipse SDK 以使用 java ant GWT 并且无法将 php 加载到它上面。
If you ask me, this program sucks. I like the idea, however the updates hardly ever work, and it does not support multiple coding languages like it says it does. Also the web site is shocking as it gives you 100 options to download.
如果你问我,这个程序很烂。我喜欢这个想法,但是更新几乎不起作用,并且它不像它所说的那样支持多种编码语言。该网站也令人震惊,因为它为您提供了 100 个下载选项。
Coulnt the have just made the one platform and then provided links to the plugins ???
难道刚刚制作了一个平台,然后提供了插件的链接???
Correct me if i am wrong guys, but trying to get PHP and Java working in eclipse is torture. Ive been stuck for 3 days now, installing and uinstalling.
如果我错了,请纠正我,但试图让 PHP 和 Java 在 Eclipse 中工作是一种折磨。我已经被卡住了 3 天,安装和卸载。
One final rant, the download speeds of the eclipse servers are below 10kb, and take about half a day to install one update.
最后吐槽一句,eclipse服务器的下载速度都在10kb以下,安装一个更新大概需要半天时间。
My prob is, I have to use it as the project i am working was archived with Eclipse.
我的问题是,我必须使用它,因为我正在工作的项目是用 Eclipse 存档的。
回答by Ionu? G. Stan
Did you follow the steps presented on this installation page? There is a From update sitesection in which they describe how to install it from the Software Updates menu.
您是否按照此安装页面上的步骤操作?有一个来自更新站点的部分,其中描述了如何从软件更新菜单安装它。
回答by graham.reeds
I had this problem recently.
I started with the J2EE Ganymede setup and added the PDT tools (via Update) afterwards.
我从 J2EE Ganymede 设置开始,然后添加了 PDT 工具(通过更新)。
Then I added Subclipse afterwards.
然后我之后添加了 Subclipse。
G.
G。
回答by EricSchaefer
(I wish they wouldn't change the eclipse pages all the time...)
Look for "runtime" on the downloads page for PDT (http://www.eclipse.org/pdt/downloads/)
(我希望他们不会一直更改 eclipse 页面......)
在 PDT 的下载页面上寻找“运行时”(http://www.eclipse.org/pdt/downloads/)
Why do you want JDT and PDT in one installation? I usually set up different installations for different things. It just so easy, since you don't really need to install anything. I have two setups for PDT and at least 5 for JDT.
为什么要在一个安装中使用 JDT 和 PDT?我通常为不同的东西设置不同的安装。这很简单,因为您实际上不需要安装任何东西。我有两个 PDT 设置和至少 5 个 JDT。
回答by Marko
Install Aptana Studioplugin. In my experience it is much better then either PHPEclipse or PDT. However, YMMV.
安装Aptana Studio插件。根据我的经验,它比 PHPEclipse 或 PDT 好得多。然而,YMMV。