This looks like a Java question to me. There's no Perl in
here, so it's a bit hard to say (perhaps the Perl program
closes STDOUT, who knows?). But it's easy to check whether
it's a Java question or not. Replace the Perl command with
something else that writes to STDOUT. If that output also
disappears, you'd have to dive in your Java manuals.