Open a new prompt/terminal window from Java

Will this work?

// windows only
Process p = Runtime.getRuntime().exec("cmd /c start cmd.exe");
p.waitFor();

Leave a Comment