java - quartz compatibility with jdk version 1.4 -
did know maximum version of quartz can use when use jdk 1.4?
i try search everywhere could't find it. in this other question :
server 1: quartz 1.x running in jdk 1.4 code
server 2: quartz 2.x running in jdk 1.6 code
but try use quartz
<groupid>org.quartz-scheduler</groupid> <artifactid>quartz</artifactid> <version>1.8.6</version>
and know org.quartz.impl.stdschedulerfactory have wrong version 49.0, should 48.0 use in jdk 1.4.
the version support jdk 1.4 quartz 1.5.2, can it's jar here. , dependency maven repository :
<dependency> <groupid>quartz</groupid> <artifactid>quartz</artifactid> <version>1.5.2</version> </dependency>
then use (surround try catch):
scheduler s = sf.getscheduler(); s.start(); jobdetail jd = new jobdetail("myjobq", "job_group", updaterjob.class); crontrigger ct = new crontrigger("mytrigger", "mytrigger_group", "0/1 * * * * ?"); s.schedulejob(jd, ct);
Comments
Post a Comment