in reply to Re^3: Testing Java code
in thread Testing Java code

It's probably writing it to STDERR. Try
my $output = qx/java MyProgram 50000 2>&1/

Caution: Contents may have been coded under pressure.