 <p>This is how I did it, when I had such a requirement</p> <pre><code>public class Schedule { public Schedule()throws Exception{ SchedulerFactory sf=new StdSchedulerFactory(); Scheduler sched=sf.getScheduler(); sched.start(); JobDetail jd=new JobDetailImpl("myjob",sched.DEFAULT_GROUP,QuartzJob.class); SimpleTrigger st=new SimpleTriggerImpl("mytrigger",sched.DEFAULT_GROUP,new Date(), null,SimpleTrigger.REPEAT_INDEFINITELY,60L*1000L); sched.scheduleJob(jd, st); } public static void main(String args[]){ try{ new Schedule(); }catch(Exception e){} } } </code></pre> <p>==================================</p> <pre><code>public class QuartzJob implements Job{ @Override public void execute(JobExecutionContext arg0) throws JobExecutionException { String[] springConfig = { "resources\\spring-batch.xml" ,"SPRING_BATCH_JOB_NAME" }; CommandLineJobRunner.main( springConfig ); System.out.println("Done"); } } </code></pre>