title: Is java Runtime.exec(String[]) platform independent?
body: <p>I had some code that ran commands through <b>Runtime.getRuntime.exec(String)</b>, and it worked on Windows. When I moved the code to Linux, it broke, and the only way of fixing it was to switch to the <b>exec(String[])</b> version. If I leave things this way, will the code work the same on Windows and Linux, or should I use the exec(String) on Windows and exec(String[]) on Linux?</p>