Aquí está el codigó
Código:
De antemano muchas gracias.Scheduler scheduler = new StdSchedulerFactory().getScheduler(); scheduler.start(); JobDetail job = new JobDetail(); job.setName(jobName); job.setJobClass(Apagar.class); CronTrigger trigger = new CronTrigger(); trigger.setName(triggerName); trigger.setCronExpression(expresion); scheduler.scheduleJob(job, trigger);
Elea