Perfect. This solves my problem of calls from nagios to java.
For now I will solve my problem of multiple calls to java creating multiple vm's by making one call to java that will do all the checks and log them, and then have separate checks getting the results from the logs.
I was suggested (elsewhere) that I run the java tests in a continuous loop elsewhere, with a sleep timer, and then testing those logs. But I think I prefer to have nagios call the java test and get a result to see if all the tests completed.
Thanks again for your time and your help.