tags:

views:

374

answers:

1

I installed Eclipse PDT and now I want to run a JUnit test in a Java project. The Java perspective is used, but there are no options displayed in the Run As menu item.

The "Run Configurations" item has the "launch new configuration" disabled.

The tests are JUnit4 (the project compiles with junit4.jar, but not with junit3.jar).

How can I get the "Run As -> JUnit" option?

+3  A: 

If you take a look at the Galileo Packages Comparison page, you will see the Eclipse Php distro (the one with PDT features) does not include the JDT (Java Development Tools) features.

That means the "nature" of the projects you will create will not include "java" and any "Run as JUnit".

You would need to load another distro (like the J2EE one), and then include the PDT plugin on top of it, in order to have both.

VonC
Thanks. I thought, it might work the other way around - install a JDT plugin into the PHP distro. J2EE distro now works with Run As Junit.
GrGr