title: java.lang.NoClassDefFoundError in command prompt
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2276219/can-i-run-from-command-line-program-created-by-eclipse">Can I run from command line program created by Eclipse?</a>  </p>
  </blockquote>
  
  
  
  <p>I am getting below exception when I try to run class file from command prompt,the same I run in eclipse,there I don't get any error</p>
  
  <p>Trying to run from the same folder</p>
  
  <pre><code> Exception in thread "main" java.lang.NoClassDefFoundError: testClient (wrong nam
      e: com/mindcraft/queryExecutor/actionclass/testClient)
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClassCond(Unknown Source)
              at java.lang.ClassLoader.defineClass(Unknown Source)
              at java.security.SecureClassLoader.defineClass(Unknown Source)
              at java.net.URLClassLoader.defineClass(Unknown Source)
              at java.net.URLClassLoader.access$000(Unknown Source)
              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: testClient.  Program will exit.
  </code></pre>