title: getting exit value of actual command in process builder
body: <p>i am using ProcessBuilder for executing windows command through java code , here is my code</p>
  
  <pre><code>String[] command = {"cmd.exe","/c","jar.exe"};
  ProcessBuilder processBuilder  = new ProcessBuilder(command);
  Process pro = processBuilder.start();
  pro.waitFor();
  int j = pro.exitValue();
  </code></pre>
  
  <p>in this case i am getting exitValue of "cmd.exe" , how can i get exitValue of "jar.exe" command</p>
  
  <p>Regards</p>