I have used jna library to write to windows registry to add my program to startup. When I saw in the registry, it got added fine. I used the code
Advapi32Util.registrySetStringValue(WinReg.HKEY_LOCAL_MACHINE,
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", FILE_NAME, FILENAME_FILEPATH);
The save data in registry is like
key - program.jar
value - PATH/program.jar
If I double click the program.jar file, it gets executed fine, but why it is not executing at startup ?
Thanks