title: Run a jar File from java program
body: <p>I am trying to execute jar files from another Java program. I am using the following code : </p>
  
  <pre><code>      try {
            Runtime runtime = Runtime.getRuntime();
            runtime.exec("path upto jar");
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(null, "Exception occured" + ex);
        }
  </code></pre>
  
  <p>But its not working. I tried google and it gave me the examples using ProcessBuilder, but that is not working either.</p>