Is there any other method for java scheduler more easier to understand than Quartz?
楼主#更多 发布于：2016-05-16 10:53
I've created a small java program and I want to launch it everyday at 1 o'clock. I can add it windows task plannifier and it works very well but I want to do it with java. The java timer task seems to be not good. I heard about Quartz and when I try their it seems to be complicated for me or I don't find the simple example or tutorial. Can anyone know some good tutorial or example code easier than the Quartz's site. Or redirect me to some other site.
Both Quartz and the built in Timer class are not built to start your whole application. They are built to run some specified tasks according to some schedule as long as your application is running. To actually start your application at a specified time, an external resource will be necessary (unless you want your application to run at all times and only do some activity ever so often). For that purpose the Windows Task Scheduler is sufficient.