Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void runCMDWindow(){
- Runtime rt = Runtime.getRuntime();
- try {
- rt.exec("cmd.exe /c cd & start cmd.exe /k \"java -cp terminal-based-program.jar\"");
- } catch (IOException e1) {
- e1.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement