I have done the following downloaded sample spring batch project in to spring tool suite and followed the steps listed in the example .
I was able to run the application inside the STS . but when i create the jar file using maven build --> clean install and try to execute the command I'm not that clear with the command to execute few options i used java -jar name.jar java -jar name.jar classpath:/launch-context.xml firstJob java org.springframework.batch.core.launch.support.commandlinejobrunner classpath:/launch-context.xml firstJob
the error is could not find or load main class org.springframework.batch.core.launch.support.commandlinejobrunner
I would appreciate any help on this . thanks
Aucun commentaire:
Enregistrer un commentaire