java Command result to file

I would like to send results as log to a file on unix.
When I try to run following command, no command_result file occured. I can't see logs.
How can I put the results to a file with java command on unix ?

java -classpath . HelloWorld $parameter>command_result

The method is correct. Is the java program using System.out.println(...) ?

Is dumping log messages buffered, in that case you might have to wait for some more time to see the messages in the log file or console.