My question is if you can use the console of the operating system (eg, the "cmd" of Windows, or "terminal" in Linux) to see the outputs of the programs in Eclipse, instead of the console provided by Eclipse.
Thank you very much
My question is if you can use the console of the operating system (eg, the "cmd" of Windows, or "terminal" in Linux) to see the outputs of the programs in Eclipse, instead of the console provided by Eclipse.
Thank you very much
What you can do is configure an external launcher for cmd or terminal, for this:
Here is a more detailed tutorial.
PUBLISHED WITH USEFUL ANSWER
@AugustoHerbel also, if what you want is to show the results by opening the console, you could do it with code, here is a small example:
public static void main(String[] args) {
try {
int a = 3, b = 2, suma = 0;
suma = a+b;
Runtime rt = Runtime.getRuntime();
rt.exec("cmd.exe /c start echo suma: "+suma);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}