more Installation Questions...Help!
1 posts in topic
Flat View  Flat View

Posted By:   mike_hardy
Posted On:   Monday, April 18, 2005 09:20 AM

Why do I receive the error: Exception in thread "main" java.lang.NoClassDefFoundError: junit/awtui/TestRunner

Because I can't change into a directory with more than 8 characters, I changed the name of the directory from 'junit3.8.1' to 'junit3'.

I've set the path to:

C:j2sdk1.4.2_07 in;C:junit3junit.jar;C:junit3junit;C:junit3;

At the command prompt I type:cd junit3junit

then: java junit.textui.TestRunner junit.samples.AllTests

What am i doing wrong? What else do i need to do?

Re: more Installation Questions...Help!

Posted By:   Sebastien_Meric  
Posted On:   Sunday, April 24, 2005 11:23 PM

set the classpath (java stuff) not the path (your os stuff) to the jUnit jar. That is the first point. Then make sure the samples rely in the junit/samples directory right beneath the one your in. (ie after your cd ... check that you can
dir junitsamplesAllTests.class
if not your not in the right place. move to it.


About | Sitemap | Contact