help with the path while using ant

R

ros

Hi,

I am trying to learn the Ant framework. And for this I am doing the
tutorial that comes with the framework download.

Everything went well until I reached the part where I have to reach
the JUnit framework for testing. I get the error pasted below when I
use this.

I would be really thankful if somebody could help me make sense of
this error message. Would really appreciate help.

Thanks
ros

C:\ANT tutorial 1>ant junit
Buildfile: build.xml

compile:
[javac] Compiling 1 source file to C:\ANT tutorial 1\build\classes
[javac] C:\ANT tutorial 1\src\HelloWorldTest.java:1: package
junit.tests.fra
mework does not exist
[javac] public class HelloWorldTest extends
junit.tests.framework.TestCase {

[javac] ^
[javac] C:\ANT tutorial 1\src\HelloWorldTest.java:7: cannot
resolve symbol
[javac] symbol : method fail (java.lang.String)
[javac] location: class HelloWorldTest
[javac] fail("An error message");
[javac] ^
[javac] 2 errors

BUILD FAILED
C:\ANT tutorial 1\build.xml:24: Compile failed; see the compiler error
output fo
r details.

Total time: 4 seconds
 
D

Daniel Dyer

Everything went well until I reached the part where I have to reach
the JUnit framework for testing. I get the error pasted below when I
use this.

I would be really thankful if somebody could help me make sense of
this error message. Would really appreciate help.

Thanks
ros

C:\ANT tutorial 1>ant junit
Buildfile: build.xml

compile:
[javac] Compiling 1 source file to C:\ANT tutorial 1\build\classes
[javac] C:\ANT tutorial 1\src\HelloWorldTest.java:1: package
junit.tests.fra
mework does not exist
[javac] public class HelloWorldTest extends
junit.tests.framework.TestCase {

The TestCase class is in the junit.framework package, not
junit.tests.framework. Classes under the junit.tests.* hierarchy are unit
tests for the framework itself and are presumably not included in the JAR
file.

Dan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,734
Latest member
manin

Latest Threads

Top