Open command prompt on mac for java

broken image
broken image
broken image

If it matters, I'm trying to run a command similar to this: java -flag -flag -cp terminal-based-program.jarĮDIT Unfortunately I have had some strange findings. I've tried adding the next command after the 'start', I've tried running another rt.exec containing my command, but I can't find a way to make it work. Is it possible to open the command prompt (and I guess any other terminal for other systems), and execute commands in the newly opened window?Ĭurrently what I have is this: Runtime rt = Runtime.getRuntime()