quartz problem
im trying to use quartz in my project for a simple example
import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;
public class QuartzWhat implements Job{
public void execute(JobExecutionContext cntxt)
throws JobExecutionException{
System.out.println("VaMukanya Woye..");
}
public static void main (String [] args){
try{
SchedulerFactory sf = new StdSchedulerFactory();
Scheduler scheduler = sf.getScheduler();
scheduler.start();
JobDetail job = new JobDetail("job1", "group1", QuartzWhat.class);
Trigger trigger = TriggerUtils.makeSecondlyTrigger(10);
trigger.setName("trigger1");
trigger.setGroup("group1");
scheduler.scheduleJob(job, trigger);
}catch(Exception ex){
}
}
}
i am getting the following errors :the code compiles on running it
exception in thread "main" no class defination found error: javax/Transaction/UserTransaction
at org.quartz.impl.StdSchedulerFactory.instatiate(StdSchedulerFactory.java:1104)
line 1104 of StdSchedulerFactory is UserTransactionHelper.setUserTxLocation(userTXLocation);
thanks
Taku

