Java starting running command in new terminal (mac osx) - process builder not running osascript properly
问题 I'm trying to create a new process in a new window. I'm following this example for the command Running a command in a new Mac OS X Terminal window (using Java Process builder). I printed out the resulting command and it works if I type it in manually, but it doesn't start the new window when I run it. Something as simple as osascript -e 'tell application "Terminal" to do script "java -jar test.jar"' doesn't bring anything up Sample code: try { ProcessBuilder pb = new ProcessBuilder("osascript