To configure Notepad to run when any user logs on to a specific computer:
Click the bottom-left Start button to open the Start Menu,
enter gpedit.msc in the empty box and tap gpedit in the results.
Edit the following group policy:
Computer Configuration\Administrative Templates\System\Run These Programs at User Logon <<<<< Didn't find this, found just Logon
Type the full path name of the program. In this example, type the following path name:
The advantage of java.exe is that it spawns a new console window
why its not opening your code
Build id: M20130204-1200
"C:\Program Files\Java\jre-10.0.1\bin\javaw.exe" -jar "%1" %*
Start in: D:\JavaDevelopment\runtime
not the login startup
when I installed Java 11 and uninstalled older versions it broke.
How do I do this exactly?