title: Run Spring batch with CommandLineJobRunner error impossible to find or load main class CommandLineJobRunner
body: <p>I am new to Spring batch and want to run a batch with a command line using CommandLineJobRunner class, So I copied the generated jar file and CommandLineJobRunner to my Desktop and after I ran the following command:</p>
  
  <p><b>Java -cp spring-batch-example.jar org.springframework.batch.core.launch. support. CommandLineJobRunner classpath: /jobs/file-import-job. xml simpleFileImportJob</b></p>
  
  <p>which give this error (impossible to find or load main org. springframework. batch. core. launch. support. CommandLineJobRunner).
  I think that I should deal with the classpath, I don't know how doing it.</p>
  
  <h2><a href="https://i.stack.imgur.com/oiahQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oiahQ.png" alt="enter image description here"></a> <a href="https://i.stack.imgur.com/gDrI1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gDrI1.png" alt="enter image description here"></a></h2>