Processing Exception

Hello. I want to start an external program in Processing and Processing should detect whether this program has also been started. How can I realize this?
I’m not familiar with these exceptions.
Thanks…Frank