in reply to Testing Java code

Try appending a ' 2>&1' to your command. This tells the shell to redirect the output of `time` (STDERR) to STDOUT instead. Good luck!