Sandeep Chatterjee
Sandeep Chatterjee

Reputation: 3249

Not displaying the <Terminated> message on eclipse console

I am trying to run a simple Hello World program on Eclipse IDE - Version: 2020-03 (4.15.0) Build id: 20200313-1211 and it gives a Terminated message on console followed by the desired output. I am using java 11.0.7 2020-04-14 LTS on Ubuntu 20.04 LTS.

Code:

package miscellaneous;

public class Test {
    public static void main(String[] args) {
        System.out.println("Hello World!"); 
    }
}

Output:

<Terminated> Test[Java Application] /usr/lib/jvm/jdk-11.0.7/bin/java
Hello World!

How do I not display the terminated message on the console?

I have already gone through this post:

Console shows terminated message in eclipse

Upvotes: 0

Views: 693

Answers (1)

greg-449
greg-449

Reputation: 111217

The terminated message is not part of your program's output. It is simply a status message from Eclipse telling you that the program has finished running. It is displayed in the view information area rather that the console output area.

You can't stop Eclipse displaying this message.

Upvotes: 4

Related Questions