title: spring batch null job runner null pointer exception
body: <p>Hi I'm getting null pointer exception while executing a sample spring batch job. Exception is thrown from job launcher. This is my job launcher code. Thanks in advance.</p>
  
  <pre><code>public class NewJobRunner {
  public static Job job;
  public static JobLauncher jobLauncher;
  public static JobRepository jobRepository;
  
  public static void main(String args[]) {
      try {
          AbstractApplicationContext applicationContext = new ClassPathXmlApplicationContext("/resources/job-context.xml");
          jobLauncher.run(job, new JobParametersBuilder()
                      .toJobParameters()
          );
      }catch(Exception e) {
          e.printStackTrace();
      }
  
  }
  
  public void setJobLauncher(JobLauncher jobLauncher) {
      this.jobLauncher = jobLauncher;
  }
  
  public void setJobRepository(JobRepository jobRepository) {
      this.jobRepository = jobRepository;
  }
  
  public void setJob(Job job) {
      this.job = job;
  }
  </code></pre>