Run Jar file on PC at startup
<p>I know that similar questions were asked before here. But I couldn't make mine work somehow. Here are the steps that I tried already. </p>

<ol>
<li><p>I created a bat file as <code>javaw -Xmx200m -jar C:\Path\to\jarfile\TheJar.jar</code> and put in the startup folder. It worked for the current user. This doesn't help because I want to run this file for all users once they login to PC. </p></li>
<li><p>I created key value as HKEY_local_machine>software>microsoft>windows>current version >run and put it the samething in the string value. That didn't work either. </p></li>
</ol>

<p>So I have windows 10 64 bit machines and the jar file needed to be placed on those computers. Once any user login, the jar file needs to run. But I couln't make that so far. </p>