get output from java cmd execution