How to execute .jar file from Windows Scheduler?

Step 1: Open a notepad and write following command and save this file with .bat extension.

java –jar BorderRadiusImageView.jar



Step 2: Go to windows search and type “window scheduler” and click “Schedule Task”.

And you will see ”Create Task” Scheduler window to create new Task.

Now we have to give name of task and fill other details as shown in below diagram:

One most important thing that we have to select a value in “Configure for:”

I am using Windows 10, so I am choosing Windows 10 in the “Configure for:” option. Then click the OK button.



Step 3: Now click on “Triggers” tab –> Click on “New” to create new trigger.

Then you will see the following window, here you have to give the start date and time to trigger the task. We have many options to select like daily, weekly, and monthly. You can choose and set it as per your requirements.
   Trigger created in below image:
Step 4: Now click on the Action tab -> click on the new button to create a new action. The following window will appear:

Here you have to give path of ‘.bat’ file that we have created in step 1. And give folder path in Start in box and then click OK. Please see below image:

After pressing OK, your task will be ready to run and it will display like the below screen:


It’s done. Now your scheduled task will run on the scheduled time and .jar will be executed by .bat file.

2 thoughts on “How to execute .jar file from Windows Scheduler?”

  1. I’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read!! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site. energy drink

    Reply

Leave a Comment