jdk1.4

How to run a task daily from Java?

青春壹個敷衍的年華 提交于 2019-11-26 19:50:51
问题 How can I run a task daily at a specified time (say 11:00 am) using java.util.Timer ? I'm using JDK 1.4.2, I know it's old, but it's what the project requires. 回答1: Quartz is the most well known solution to schedule processes in Java environments, but you have a lot of options. Check this list: Quartz is an open source job scheduling system that can be integrated with, or used along side virtually any J2EE or J2SE application. Quartz can be used to create simple or complex schedules. Jcrontab