title: Extracting a jar file to a specific path using java runtime
body: <p>I'm using the following command in runtime to extract a jar to a specific path, but the file is extracted in my class exe path. 
  <strong>cmd="cmd /c cd F: &amp;&amp; cd F:\workFolder\ProcessFile\ProcessJar\PJar &amp;&amp; jar xvf F:\workFolder\ProcessFile\ProcessJar\agconfig.jar"</strong></p>
  
  <pre><code>Runtime rt = Runtime.getRuntime();
  Process proc = rt.exec(cmd);
  </code></pre>
  
  <p>Suppose, I'm executing the above code in E:\, then the jar file is extracted in the same path. 
  Kindly help me to extract the jar in specified path (<code>F:\workFolder\ProcessFile\ProcessJar\PJar</code>)</p>