title: JUnit: 4.8.1 "Could not find class"
body: <p>Ok, I am like other and new to jUnit and having a difficult time trying to get it working. I have searched the forum but the answers provided; I am just not getting. If anyone out there could lend me a hand I would greatly appreciate it.</p>
  
  <p>Let me provide the basics:
  OS: mac OS X.6</p>
  
  <pre><code>export JUNIT_HOME="/Developer/junit/junit4.8.1"
  export CVSROOT="/opt/cvsroot"
  export PATH="/usr/local/bin:/usr/local/sbin:/usr/localmysql/bin:/opt/PalmSDK/Current/bin/:/usr/local/mysql/bin:$PATH:$JUNIT_HOME:$CVSROOT"
  export CLASSPATH="$CLASSPATH:$JUNIT_HOME/junit-4.8.1.jar:$JUNIT_HOME"
  </code></pre>
  
  <p>I can compile a test class from a java file, however when I try to then run the test </p>
  
  <pre><code>java org.junit.runner.JUnitCore MyTest.class 
  </code></pre>
  
  <p>I get the following:</p>
  
  <pre><code>JUnit version 4.8.1
  Could not find class: MyTest.class
  
  Time: 0.001
  
  OK (0 tests)
  </code></pre>
  
  <p>Now I have been in the directory with the <code>MyTest.class</code> which is just somewhere in my file system, I tried moving the source folder to the <code>junit</code> folder and the <code>junit/junit4.8.1</code> folder and the same result.  I cannot even run the tests that came with junit.</p>