我试图运行在roseindi.net上给出的石英调度示例helloworld程序
http://www.roseindia.net/quartz/quartz-scheduler-tutorial.shtml
http://www.roseindia.net/quartz/quartz-scheduler-tutorial.shtml
我有两个类在我的java projecy与石英版本1.6 – 项目库中的all.jar类似的设置.
当我尝试运行应用程序时,我得到以下异常
Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/UserTransaction at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1104) at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1355) at oiaoerpdataconnector.HelloSchedule.HelloScheduleRun(HelloSchedule.java:25) at oiaoerpdataconnector.HelloSchedule.main(HelloSchedule.java:37) Caused by: java.lang.ClassNotFoundException: javax.transaction.UserTransaction at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 4 more Java Result: 1
我在这里缺少什么?
谢谢,
Priyank
解决方法
What am I missing here?