Cannot create an instance of JobDetail interface while using Quartz?

You are using the wrong version of Quartz JobDetail class in Quartz 1. X was refactored to JobDetail interface with org.quartz.impl. JobDetailImpl implementation in Quartz 2.x.

You are using the wrong version of Quartz. JobDetail class in Quartz 1. X was refactored to JobDetail interface with org.quartz.impl.

JobDetailImpl implementation in Quartz 2.x. You should either replace Quartz 2. X with Quartz 1.

X on your CLASSPATH or better use new 2. X API.

Thanks for the quick reply. Using instances of JobDetailImpl and SimpleTriggerImpl instead of JobDetail worked. I am using Quartz 2.1.– Amit Dec 9 at 12:15 I'm happy I could help.

Consider accepting an answer and feel free to open a new one if you have some other issues. – Tomasz Nurkiewicz Dec 9 at 12:17.

JobDetail class is abstract class so use the implementation of it there are two ways 1st using JobDetailsBean refer this for example java2s.com/Open-Source/Java-Document/J2E... 2nd usiing MethodInvokingBean refer this for example http://www.java2s.com/Open-Source/Java-Document/J2EE/spring-framework-3.0.0/org/springframework/scheduling/quartz/MethodInvokingJobDetailFactoryBean.java.htm.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions