Go to Run --> Run Configurations..
In the dialog, select your Java project, then select the Common tab.
First, you have to select the Output File Checkbox.
Then set the path and filename where Eclipse is going to redirect the console output.
Second, select Append Checkbox.