[Windows Server] Automatic execution of Java Appication when rebooting


Writing time : 2017-07-09 19:48:14

Automatic execution of Java Appication when rebooting

This is a method that automatically starts when you log in to Windows by creating a shortcut to the java application in jar format and registering it in the startup program.

If the java application does not start immediately by entering the login password during Windows reboot, refer to How to automatically log in without entering the login password.
[Automatic login when Windows Server reboots] (http://blog.devez.net/391)

Create shortcut


Right-click on the desktop and click New> Shortcut

Automatic execution of Java Application when rebooting 001.png

Enter cmd /k "java -jar jar file path" in the item location input

Automatic execution of Java Application when rebooting 001.png

Enter shortcut name

Automatic execution of Java Application when rebooting 001.png

A shortcut is created on the desktop, and if you double-click the icon, check if java applicationjava is started.

Automatic execution of Java Application when rebooting 001.png

Register the created shortcut to the startup program


Enter "shell:startup" in the Run window that is executed by pressing Windows + R keys.

Automatic execution of Java Application when rebooting 001.png

Startup program window is launched
Select the shortcut created on the desktop, Control + C (copy), and Ctrl + V (paste) in the startup program window

Automatic execution of Java Application when rebooting 001.png

When pasted, the shortcut is added to the startup program as shown below.
Restart Windows and log in to see if Java Application starts automatically

Automatic execution of Java Application when rebooting 001.png
Previous post

Next post