I am designing a java application which needs to run at a specific time. My application is packaged in jar file and this jar should be activated every day at 3 AM in morning. My end Machine is windows machine not a server. Please help me out with this. Myapp.jar is the jar file and its located in D:/Collector/MyApplication/target/MyApp.jar is the location in my system. Right now
java -jar MyApp.jar
is executing fine. But when my system goes off then again I have to initiate the same through command prompt. So I would also require a solution in which when system reboots the jar should be initiated. How to schedule a java program to run daily in Windows?
This answer already is there but I don't want to do it with Task scheduler as it reduces my machine efficiency.