title: junit cannot find class
body: <ol>
  <li><p>I am able to run the sample tests supplied with junit (from any directory). I would think that this suggests my installation of junit is perfectly fine.</p></li>
  <li><p>I assume, to compile a junit test, it is no different from any other java file, namely: javac fileName.java </p></li>
  <li><p>My test file (.java and resulting .class) lives in: c:\parent\child. Obviously, in order to compile the .java file, I have a package statement on the first line: package parent.child followed by the all-important: import junit.framework.TestCase;  After this, there is a public class fileName definition extends TestCase {}.
  The file compiles without any warnings or errors.</p></li>
  <li><p>when I attempt (in the c:\parent\child directory where fileName exists, both the .java and .class): </p></li>
  </ol>
  
  <blockquote>
    <p>java org.junit.runner.JUnitCore parent.child.fileName, I get the following:
    JUnit version 4.1 Could not find class: parent.child.fileName Time: 0
    OK (0 tests)</p>
  </blockquote>
  
  <ol start="5">
  <li><p>Even if I drop parent.child altogether from the command, it makes no difference.</p></li>
  <li><p>My CLASSPATH environment variable is set to:
  c:\parent\junit\junit-4.1.jar;c:\parent\junit;.</p></li>
  <li><p>If I trying running with -cp c:\ or c:\parent\child or anything else, I still get the error.</p></li>
  </ol>