Hi,
Make sure you set the environment for the java executable; in Windows, this is Path env under Advanced System Settings, or just set as part of the command.
It may be easier and more flexible to use js activity with execCommand(). Wrap with logInfo() get output streams.
Thanks,
-Jon