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

http://www.unix.com/shell-programming-scripting/94568-command-result-file.html

Please review Forum Rules for further information.
The UNIX and Linux Forums - Forum Rules

Following command doesn't help to write results to log file.
How can I put results to a log file for this command ?

prm_result=`java -classpath . HelloWorld $parameter`
echo $prm_result>file.log