title: How to launch a jar file on windows startup from the registry?
body: <p>I am trying to launch a jar file on Windows Server 2008 R2 startup.</p>
  <p>I tried to add a key\value to</p>
  <pre><code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  </code></pre>
  <p>I tried as a value several alternatives:</p>
  <pre><code> java -jar c:\jcm\jcm.jar
   &quot;java -jar c:\jcm\jcm.jar&quot;
   c:\program files(x86)\java\jre1.8.31\bin\java.exe -jar c:\jcm\jcm.jar
   &quot;c:\program files(x86)\java\jre1.8.31\bin\java.exe -jar c:\jcm\jcm.jar&quot;
   &quot;c:\program files(x86)\java\jre1.8.31\bin\java.exe&quot; -jar c:\jcm\jcm.jar
  </code></pre>
  <p>But none of them launched the program.</p>
  <p>Can you advise please?</p>
  <hr />
  <p>EDIT: Fixed exe to jar of course</p>