title: Install metabase using cmd
body: <p>Using windows 10 cmd, i am trying to install metabase.</p>
  
  <pre><code>nssm install metabase C:\Program Files\Java\jre1.8.0_144\bin\javaw.exe AppDirectory C:\Program Files (x86)\POS -jar metabase.jar
  </code></pre>
  
  <p>It is installed successfully.</p>
  
  <p><a href="https://i.stack.imgur.com/WGzBm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WGzBm.png" alt="img"></a></p>
  
  <p>but when i try to start service.</p>
  
  <pre><code>sc start metabase
  </code></pre>
  
  <p>But it doesn't start.</p>
  
  <p>Why does this happen? What am I missing here? please help me. thank you in advance.</p>
  
  <p><strong>Edit:</strong>
  According to the comment i used double quotes around paths.</p>
  
  <pre><code>nssm install metabase "C:\Program Files\Java\jre1.8.0_144\bin\javaw.exe" "C:\Program Files (x86)\POSPReports" "-jar metabase.jar"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NTCYB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NTCYB.png" alt="error"></a></p>
  
  <p>Then I tried to start service manually. But giving following an error.</p>