title: How to run a jar file in command line which is packaged in another jar file?
body: <p>In my java code, I run a jar file (named file1.jar) from the command line like this:</p>
  
  <pre><code>process = Runtime.getRuntime().exec("cmd /c java -jar file1.jar");
  </code></pre>
  
  <p>If I package the whole project into a jar file (named file2.jar), then the command is invalid because of path problems. How can I solve this problem?</p>