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.
I created a bat file as
javaw -Xmx200m -jar C:\Path\to\jarfile\TheJar.jar
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.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.
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.