I am trying to execute jar files from another Java program. I am using the following code :
try {
Runtime runtime = Runtime.getRuntime();
runtime.exec("path upto jar");
} catch (Exception ex) {
JOptionPane.showMessageDialog(null, "Exception occured" + ex);
}
But its not working. I tried google and it gave me the examples using ProcessBuilder, but that is not working either.
See Question&Answers more detail:os