title: Error during conversion of .class file to jar file
body: <p>I am unable to understand the reason behind the error.I want to convert .class file to jar file,</p>
  
  <p>on dos i write :</p>
  
  <blockquote>
    <p>java cf myjar.jar *.class</p>
  </blockquote>
  
  <p>but here is what i get in return:</p>
  
  <blockquote>
    <p>Error: Could not find main class cf
    Exception in thread "main"
    java.lang.NoClassDefFoundError: cf<br>
    ---and goes on,,,,</p>
  </blockquote>
  
  <p>Why i am getting this error and what is it?</p>