Automatically launch Java application when OS starts

I need to somehow run the Java application without forcing the user to start the application manually. I'm not quite sure how I will do this, can anyone help?

+4
source share
2 answers

Run it as a Windows service. This is the way.

For various ways to run it as a service, check the answers to the following questions:

You can also read this article.

+2
source

use the registry editor to add the path to the .exe file to start goto Run from the Start menu, enter regedit.exe

then go to HKEY_CURRENT_USER / SOFTWARE / MICROSOFT / WINDOWS / CURRENT_VERSION / RUN

on the right side, create a new string value with

name = "anything" and value = java.exe -jar "full path to the file"

click ok to save the registry entry, restart the computer to see the effect

+1
source

Source: https://habr.com/ru/post/1502826/


All Articles