How to run Java Jar when Windows starts?

I read that you can add a key to the registry, but there are problems with permission in Windows Vista and 7. What is the safest and best way to start a Java program at system startup?

+1
source share
4 answers

You can configure the Java service shell to launch a Java application when Windows starts. http://www.google.com/search?q=java+service+wrapper

+4
source

I would use the task scheduler if he ran this:

java -jar file.jar

And set it to start at computer startup and to start with the highest privileges.

+4
source

Do you want to do this by code or manually?

But all about the registry, why don't you check Java Wrapper?

0
source

winsw works very nicely: http://kenai.com/projects/winsw

(.NET required though)

0
source

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


All Articles