|
Re: JUnit Problem [message #544488 is a reply to message #544481] |
Fri, 02 July 2010 20:24 |
|
On 7/2/2010 1:30 PM, Lafare wrote:
> Hello,
>
> I'm very new to Java/Eclipse.
> I've installed the Eclipse Helios version on my PC/Windows.
> I've created a very basic project HelloWorld that works fine.
>
> I'm trying to create a JUnit test using the wizard and when I launch the
> test, I get the following error. (I tried JUnit 3 and 4, same result):
>
> java.lang.NoClassDefFoundError:
> org/eclipse/jdt/internal/junit/runner/RemoteTestRunner
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner
> [snip]
1. Right-click on your project and choose Build Path -> Configure Build
Path.
2. Click on the Libraries tab.
3. Click Add Library.
4. Click JUnit, then choose either JUnit 3 or 4 depending on which you
want to use (if you're going to use Java 5 or 1.6, I'd suggest JUnit 4).
5. Right-click the JUnit test you wanted to run and choose Run As ->
JUnit Test.
You shouldn't be missing this symbol now, I think.
Russ Bateman
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09480 seconds