Newbie question on JUnit [message #73190] |
Sat, 05 July 2003 14:17  |
Eclipse User |
|
|
|
Originally posted by: jcasey.ccs.neu.edu
In the "Eclipse in Action" book, I'm trying out
the Persistence project: the first use of JUnit.
For the project, I go to Properties -> Java Build Path ->
Add Variable, and there I add JUNIT (and its file) and
JUNIT_SRC (and its file), and then associate the source to JUNIT.
Then I create the class FilePersistenceServices.
When I go to the JUnit wizard, I try to create a TestCase
and I get an error:
"JUnit is not on the project's build path. Add the junit.jar to the
project's build path."
Has anyone else seen this problem? I'd appreciate any help.
Hardware: SunBlade 100
Operating system: Solaris
Eclipse: 2.1.0
|
|
|
Re: Newbie question on JUnit [message #73685 is a reply to message #73190] |
Mon, 07 July 2003 14:21  |
Eclipse User |
|
|
|
Originally posted by: eric.rizzo.jibeinc.com
John Casey wrote:
> In the "Eclipse in Action" book, I'm trying out
> the Persistence project: the first use of JUnit.
> For the project, I go to Properties -> Java Build Path ->
> Add Variable, and there I add JUNIT (and its file) and
> JUNIT_SRC (and its file), and then associate the source to JUNIT.
> Then I create the class FilePersistenceServices.
> When I go to the JUnit wizard, I try to create a TestCase
> and I get an error:
> "JUnit is not on the project's build path. Add the junit.jar to the
> project's build path."
You defined a variable to point to JUNIT, but did not tell Eclipse to
use that value on your Project's build classpath. Right-click the
Project, choose Properties > Java Build Path > Libraries. There you will
find an "Add Variable..." button which allows you to include the value
of the JUNIT variable on that Project's classpath.
HTH,
Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com
|
|
|
Powered by
FUDForum. Page generated in 0.25298 seconds