System.out stream which is stdout. Therefore if you put a '>' in your command line that invokes the background process , you can specify a file destination to capture the output.
I'm being intentionally ambiguous here because this is common system knowledge which
you should already know. Use Google if you need help, or take a class in Java at your local community college for more information.