2
1
I have an executable jar file and I am trying to create a scheduled task for every day using windows Task Scheduler I go through the following steps:
open Task Scheduler -> Create Basic Task -> name task -> set trigger to daily -> set the time for run -> select start a program for Action -> browse and select my .jar file -> finish
However it does not run, I saw on the internet that the start a program action only works with .exe files, is there a way to get this to run my .jar file? By the way I am using windows 7 and have the latest jdk/sdk for java.
1I cant seem to get this to work, I am using javaw, because the program will execute some code on start up but eventually it will require user response through the GUI. – Beef – 2011-12-01T17:57:23.710
1@Beef: Try specifying the full paths to
javaw.exe
and your .jar file. – user1686 – 2011-12-01T21:38:45.767