db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren" <m.v.lunte...@gmail.com>
Subject Re: Running Tests
Date Mon, 10 Jul 2006 18:02:11 GMT
On 7/10/06, Gokul Soundararajan <gokul.soundar@gmail.com> wrote:
> Hi Kristian,
> Sorry for the late reply. I noticed that my code had some problems that wouldn't
> allow me to run unit tests. Hopefully, all bugs are fixed now.
> You were correct. JUnit was the problem and now the compile time errors are
> gone. I think I may be running the test incorrectly. I have posted the command
> that I use:
> java
> -cp $DERBY_HOME/classes/:
> $DERBY_HOME/tools/java/junit.jar:
> $DERBY_HOME/tools/java/jakarta-oro-2.0.8.jar
> -Dframework=DerbyNetClient
> org.apache.derbyTesting.functionTests.harness.RunTest unit/cacheService.unit
> With this, I get the following error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/derbyTesting/unitTests/harness/UnitTestMain
> Can you confirm/correct the way I'm running the test?
> Thanks,
> Gokul
Hi Gokul,

The test harness spawns off further java processes which may not
inherit the classpath if you use -cp. Please see what you get when you
add the classes dir, junit.jar and jakarta jar to an environment
variable, then run the test.


View raw message