title: How to run test case in JUnit from command line ?
body: <p>I'm trying to run a JUnit test case from command line using this command: </p>
  
  <pre><code>F:\&gt;java org.junit.runner.JUnitCore org.junit4.9b2.junit.SimpleTest
  </code></pre>
  
  <p>but I get this error:</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/junit/runner/JUnitCore
  
  Caused by: java.lang.ClassNotFoundException: org.junit.runner.JUnitCore
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
  Could not find the main class: org.junit.runner.JUnitCore.  Program will exit.
  </code></pre>
  
  <p>What is the problem? </p>