Java error send to a text file

Could someone please advise how to log java error to a text file?

I know from Window you can do to "ANY COMMAND > C:log.txt and the output send to the log.txt text file.

However, how do you log error when you run java filename? Wish I can just copy and paste from my Window command prompt screen.

I am just trying to post the error I receive to the forum.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!