How can I output Eclipse std: out to a standard Windows console

As eclipse users know, eclipse captures the default std out and err output and uploads it to a console integrated with the IDE.

I would like eclipse to simply use a standard cmd windows instance to display std: out and std: err by default, as most other IDEs do. Does anyone know how to install this?

+19
eclipse windows console
Nov 05 '08 at 0:06
source share
4 answers

I don’t know if it can be redirected to the desired console window, however it can be redirected to a file (IMHO is more useful) - in the Run / Debug β†’ Common β†’ Standard Input and Output settings (it can even write to the console and file at the same time).

+11
Nov 05 '08 at 11:39
source share

Well, you could expand / replace the existing console view and add a parameter to write to stdout / stderr.

If you are talking about a Java program and want it to open a new console window for stdout / stderr, you will probably have to modify the launch of the JDT.

Why do you need this? I find it much more convenient to have stdout / stderr in the Eclipse console.

+1
Nov 05 '08 at 20:02
source share

Since you did not say why you prefer stdout in the cmd window, I will make some assumptions: - you only want to move the window around Eclipse

In the above example, you can drag the console window onto a tab outside of Eclispe, and you open another window that you can move around like a cmd hint.

0
Nov 07 '08 at 7:21
source share

When you run java.class from cmd, it automatically displays CMD. Either take the latest .class file from the bin folder or compile it yourself using javac. then just go to the cmd window where the class file is located and run it using java yourClassesName.class and it will automatically write all the output to the cmd window.

0
Nov 15 '08 at 3:17
source share



All Articles