If you're running this in a Vortex script in a web request, the web server's environment may not allow execution of subprocesses in the restricted CGI environment.
What do $ret.stderr and $ret.err contain after this statement? What is written to vortex.log?
That just means that java is outputting the version information to the standard error handle rather than standard output. On the command line you typically see both without distinction between them.