I have a jar file I want to automatically start up when I log in to Windows 10. I had something working many moons ago but when I installed Java 11 and uninstalled older versions it broke.
I don't remember how it got there but in the Windows 10 list of programs to be started automatically there is "Java SE binary" which points to
which points to
"C:\Program Files\java\jdk 10.0.2\bin\javaw.exe"
Java 10 is the last version to use "javapath
". Ideally Id like to use my "JAVA_HOME" environment variable, or, alternatively, be able to update javapath to point to the latest install of Java. The way it is right now I'll always have to keep a copy of Java 10.0.2 installed for this to work.
I also don't remember how I managed to get this startup app to run the jar file. I'm not sure I could do the same thing with another jar file or whether the two would conflict because they both reference the same javaw.exe file.
I wish I'd have written down what I did at the time.
Seems like I've painted myself into a convoluted corner. I'd like a clearer understanding of how one should approach this with Java 11+. I do have a batch file to run my jar as well but it leaves a bunch of junk on my taskbar and I can't seem to find a way to put a batch file in the list of startup apps.