Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
"JavaRanch, where the deer and the Certified play" - David O'Meara
Frank Carver
sheriff
Member # 27
posted June 26, 2003 03:01 AM
--------------------------------------------------------------------------------
I'm guessing that should have been:
set classpath=%classpath%;c:\junit3\junit.jar
INSTALL_DIR is just a symbol indicating that you should use whatever directory you installed into
Frank Carver
sheriff
Member # 27
posted June 26, 2003 08:40 AM
--------------------------------------------------------------------------------
I guess you need to add another ";." to the end of the classpath:
set classpath=%classpath%;c:\junit3\junit.jar;.
so it will find your classes in/under the "current directory" (.) too.
Originally posted by Kevin Knowles:
My installation directory for junit is c:\junit3.
I tried the first test and got the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/TestRunner ...
What could I be doing wrong?
Richard
N 37 33 W 122 18
Richard
N 37 33 W 122 18
Richard
N 37 33 W 122 18
Originally posted by Kevin Knowles:
Richard
N 37 33 W 122 18
Originally posted by Kevin Knowles:
Ok, well I've partly solved the problem.
I have been following the junit and ant installation instrutctions. However, I am using WindowsXP (as I thought I stated previously), so I suppose that is part of the problem. For example, instead of entering set classpath= etc
(which is what I tried to do) I needed to enter (in my environment variable settings) variable classpath and under Value ".;%classpath%;c:\junit3\junit.jar;." (I read after doing some searches that I need the ".;" first in the classpath definition) and then at the prompt I need to type in set classpath and it sets the classpath for me.
Richard
N 37 33 W 122 18
Qusay
What do you have in that there bucket? It wouldn't be a tiny ad by any chance ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|