title: Why does spark-shell fail with "'""C:\Program' is not recognized as an internal or external command" on Windows?
body: <p>While running the following command prompt I am getting the error as in the screenshot.</p>
  
  <p><a href="https://i.stack.imgur.com/jAW3J.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jAW3J.png" alt="screenshot"></a></p>
  
  <p>Command:</p>
  
  <pre><code>c:\spark&gt;spark-shell
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>'""C:\Program' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>Why?</p>