java 6 - Spring batch 3.0.2 dependency with javax.batch.runtime.JobInstance -
updates:
after adding javax.batch-api-1.0.jar file, below exception gone , application running.
origianl post
i have been using java 6 along spring batch , integration year now. application stand alone java application using java 1.6.
since version of spring batch outdated, trying update libraries today. upgraded,
- spring framework 3.2 4.1.2
- spring batch 2.1 3.0.2
- spring integration 2.2 4.1
due upgrade, added new jar file spring-retry-1.1.jar
after upgrade, having below exception.
caused by: java.lang.classnotfoundexception: javax.batch.runtime.jobinstance @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source)
it looks spring batch core 3.0.2 not support java se6 me. looks java ee7 package. when dig spring batch document, says support java 6,7,8.
does knows going on spring batch core 3.0.2 java version?
this not java version issue - looks missing jars on run-time class path
how managing dependencies? spring batch 3.0.2 depends on jar --> javax.batch api contains class in question. http://mvnrepository.com/artifact/javax.batch/javax.batch-api
for list of full dependencies check out --> http://mvnrepository.com/artifact/org.springframework.batch/spring-batch-core/3.0.2.release
note dependency not optional. spring jobinstance class implements jobinstance , such required dependency.
class jobinstance
implemented interfaces: java.io.serializable, javax.batch.runtime.jobinstance
Comments
Post a Comment