Five Common java.lang.Process Pitfalls
by Kyle W. Cartmell on Jan.19, 2009, under Best Practices, Java
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. (continue reading…)
I am a software engineer residing in 