Redirect Eclipse's console / ouput to a text file

7

1

I'm doing a Java project using Eclipse. Currently by default, it shows the output in the Console. Is there any way to redirect it into a text file?

At least in python, I used to do

python somefile.py >  output.txt

pratnala

Posted 2013-03-20T12:39:53.447

Reputation: 1 866

Answers

8

Open Run Configurations window and add a new run configuration or edit an existing one. At the configuration tabs, go to Common tab. There you can specify a file to direct the output.

enter image description here

infiniteRefactor

Posted 2013-03-20T12:39:53.447

Reputation: 750

Only works when you run a java application. And actually have a run configuration. What if you need the console output from the build itself. – Martin – 2016-03-08T08:59:46.213