title: spark-submit Error: No main class set in JAR; please specify one with --class
body: <p>I am trying to execute a spark application using spark-submit.</p>
  
  <pre><code>c:\temp&gt;spark-submit --master yarn  ./SparkExamples.jar --class com.examples.WordCount
  Error: No main class set in JAR; please specify one with --class
  Run with --help for usage help or --verbose for debug output
  </code></pre>
  
  <p>The main class file is existing in the jar file.  I also checked there is a MANIFEST.MF file which holds the main class name.</p>
  
  <p>Manifest-Version: 1.0</p>
  
  <p>Main-Class: com.examples.WordCount</p>
  
  <p>what am I missing?</p>