I am receiving an error while running this command in unix:
java -cp "code-base-1.0-SNAPSHOT.jar:lib/*"
org.springframework.batch.core.launch.support.CommandLineJobRunner
iJob.xml processJob
The error:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [iJob.xml]; nested exception is java.io.FileNotFoundException: class path resource [iJob.xml] cannot be opened because it does not exist
How can I resolve this?
iJob.xml
is in the directory where you run thejava
command. Otherwise you need to point to its absolute path. - Mahmoud Ben Hassine