Problem running JUnit tests with Ant in Eclipse. Beginner question?

Your javac target doesn't specify anything apart from the source and target directory - it doesn't add any classpath entries; you'll need to add an entry for the appropriate JUnit jar file. See the javac task documentation for more details. You may want to specify the path to JUnit as a classpath attribute, a nested element, or a reference to a path declared elsewhere.

The eclipse classpath is separate from your ant environment. In your build file, when you call javac you need to supply a classpath attribute. You can define the classpath at the top of the file with the rest of your properties, like this: and then use it in each call to javac by setting the classpathref attribute, like this.

You need to specify the directory that contains your . Class files and your external jars (like junit). E.g.

Here's the complete file I took that excerpt from in case you need ideas for how to setup other common things (emma, javadoc, etc) Buildscript for IMP.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions