向 Eclipse 添加 Java 支持
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5662465/
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
Add Java support to Eclipse
提问by Richard Knop
I have downloaded and installed Eclipse for PHP Developers from here:
我已经从这里下载并安装了 Eclipse for PHP Developers:
http://www.eclipse.org/downloads/
http://www.eclipse.org/downloads/
I also need to write some Java applications. How can I add Java support to my PHP Eclipse version? Do I have to install second Eclipse for Java?
我还需要编写一些 Java 应用程序。如何为我的 PHP Eclipse 版本添加 Java 支持?我是否必须为 Java 安装第二个 Eclipse?
回答by Pascal MARTIN
You should be able to install the JAVA components, using Help > Install New Software
.
您应该能够安装 JAVA 组件,使用Help > Install New Software
.
In the list of components, there should be Programming Languages > Eclipse Java Development Tools
.
在组件列表中,应该有Programming Languages > Eclipse Java Development Tools
.
Here's a screenshot :
这是一个屏幕截图:
(source: pascal-martin.fr)
(来源:pascal-martin.fr)
回答by daganh
Because it is so trivial to have multiple Eclipse instances, I do just that to seperate php and java environments. This reduces the plugins loaded and you can somewhat keep Eclipse lean. Of course the choice is totally yours.
因为拥有多个 Eclipse 实例非常简单,所以我这样做是为了分离 php 和 java 环境。这减少了加载的插件,您可以在某种程度上保持 Eclipse 的精简。当然,选择权完全在你。
回答by sverre
On my version of eclipse:
在我的 eclipse 版本上:
Help menu->install new software
帮助菜单->安装新软件
Choose the download page for your version of eclipse
为您的 eclipse 版本选择下载页面
There is a category "programming language" which should have Java.
有一个类别“编程语言”应该有Java。
回答by Diego
What you downloaded was basically the eclipse core project and a list of standard "addon" packages that might help in PHP development. According tho this comparison chartyou're only missing two packages to now make eclipse ready for java development:
您下载的基本上是 eclipse 核心项目和可能有助于 PHP 开发的标准“插件”包列表。根据这个比较图表,您只缺少两个包,现在可以让 Eclipse 为 Java 开发做好准备:
You could just download those two packages from eclipse by going to
您可以通过以下方式从 eclipse 下载这两个包
Help->Install new software
帮助->安装新软件
to have the standard "Eclipse for Java Development" setup.
拥有标准的“Eclipse for Java Development”设置。