Reputation: 83755
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?
Upvotes: 22
Views: 16796
Reputation: 401182
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)
Upvotes: 38
Reputation: 421
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.
Upvotes: 3
Reputation: 17150
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:
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.
Upvotes: 2
Reputation: 6919
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.
Upvotes: 2