Yes, i am sure it is possible but it is not working as in the first way we think.
Check the following way for several examples. As far as i see (after a quick look), the page also has examples for processes with parameters...
Execute an external program - Real's Java How-to