On 6/9/07, Session Mwamufiya <[EMAIL PROTECTED]> wrote:

I moved my build.bat file to the root level, and am only using one file to
build the code, the test, and run the test.  This is the content of
build.bat:

@echo off
set
CLASSPATH=WEB-INF\lib\xwork-2.0.1.jar;WEB-INF\lib\junit-4.3.1.jar;WEB-INF\cl
asses;WEB-INF\src\test

Echoing Dave, you need to put all of the dependencies on the
classpath.  Look at the list of jars at the bottom of my last message.
You probably don't need all of those for this simple example, but you
need more than you have listed above.

javac WEB-INF\src\java\*.java -d WEB-INF\classes

javac WEB-INF\src\test\*.java -d WEB-INF\classes

So far, so good...

I modified my HelloWorldTest.java file as follows according to JUnit.org:

Unnecessary, but JUnit 4 with annotations is more fun. :)

The output I get is:
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

Add the commons-logging jar to the classpath.  If you get another
NoClassDefFoundError, then look at the list of jars and see if there
is a likely suspect.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to