title: how to submit spark application on cmd
body: <p>I have a Spark Application which I initially created using maven (on windows). I converted my maven project into an Eclipse project, and I am now working on it via Eclipse.<br>
   I am able to utilize and verify this by running the application through Eclipse.</p>
  
  <p>Now, I am trying to submit my application through the command line. I use the spark-submit command as follows:</p>
  
  <pre><code>bin\spark-submit \  
    --class C:\Users\pc\Desktop\eclipse\myapp\src\main\java\myapp\Main.java \  
    --master local[8] \
    C:\Users\pc\Desktop\eclipse\myjar.jar
  </code></pre>
  
  <p>When I submit my jar, I get an error saying can't load main class from Jar file? </p>
  
  <p>what i am doing wrong?<br>
  is it the path of my main class (<code>--class C:\Users\pc\Desktop\eclipse\myapp\src\main\java\myapp\Main.java</code>)</p>