Add Java support to Eclipse
I have downloaded and installed Eclipse for PHP Developers from here:开发者_如何学编程
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?
You should be able to install the JAVA components, using Help > Install New Software
.
In the list of components, there should be Programming Languages > Eclipse Java Development Tools
.
Here's a screenshot :
(source: pascal-martin.fr)
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.
On my version of eclipse:
Help menu->install new software
Choose the download page for your version of eclipse
There is a category "programming language" which should have Java.
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 chart you're only missing two packages to now make eclipse ready for java development:
- GEF
- JDT
You could just download those two packages from eclipse by going to
Help->Install new software
to have the standard "Eclipse for Java Development" setup.
精彩评论