By kcartmell
via kylecartmell.com
Published: Mar 12 2010 / 08:53
The simplest way to call an external executable or shell script from Java is the creation of a Process via Runtime.exec or ProcessBuilder. Unfortunately there are several common traps that can cause code that works as expected for a single invocation of a small executable to do terrible things when repeatedly calling several complex external applications. In this article you will find explanations of five of the most common concerns along with strategies for handling such issues safely and effectively.



Add your comment