I have this code that is supposed to run a executable jar, but whenever the code is executed nothing happens?
try {
proc = Runtime.getRuntime().exec("java -jar C://X-Dock//MP3Player.jar");
} catch (IOException e1) {
e1.printStackTrace();
}
The JAR works fine if I run it manually, but that line of code just doesn't work. And I know for sure that the code is called.
ProcessBuilderinstead