Kyle Cartmell’s Homepage

Five Common java.lang.Process Pitfalls

by 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…)

24 Comments more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact me so I can take care of it!

Invigorating resources!

You should definitely check out...

Archives

All entries, chronologically...