Also, the topic says "Put the resutls of a Shell command into a variable" but java.exe is not a shell command. In fact, java.exe does not output to either STDOut or STDErr.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.