Eclipse Console not showing output

107,309

Solution 1

Go to "Window > Reset Perspective", that will reset the window settings to default. Next, you might need to stop any running Java processes. I suggest you then click "Remove all Terminated Launches" and if the red "Terminate All" is still available click that as well

Remove all Terminated Launches

Solution 2

[working] I encountered the same problem, I tried with all the solutions provided above but it didn't work then I came to a solution which worked. Follow the following process to overcome the problem.

Right click on workspace provided by Eclipse --> Select "Run As" --> Java Application.

enter image description here

This will work definitely.

Solution 3

Make sure that your System.out.println("Hello World") is in main method with proper signature.

Ex:

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

Solution 4

Make sure that the project structure should be as follows:

enter image description here

Solution 5

I've lost the console only in the Java default perspective and I wasn't able to show it again by using window > show view > console.

What I did is the following :

  1. window > Perspective > reset perspective
  2. window > show view > console

and It appears now!!

Share:
107,309
user3497430
Author by

user3497430

Updated on July 10, 2022

Comments

  • user3497430
    user3497430 almost 2 years

    I have written a simple class having an SOP statement for "Hello World". But the Eclipse console is not showing output. I then wrote the same program in a previously created project and it worked fine. I am opening the Console as given below:

    Window->Show View->Console.

    But it is not working. I am using j2ee project in the same workspace. Any idea? Please help. I am stuck because of this problem.

    • TheGraduateGuy
      TheGraduateGuy over 9 years
      share screenshot of your problem that you are facing. How some can know what issue you having if they don't see it.
    • Joop Eggen
      Joop Eggen over 9 years
      Check that the right main is executed. And that there is no redirection (System.setOut...)).
    • user3497430
      user3497430 over 9 years
      @ShaU Not yet.I am trying to resolve it.
    • Admin
      Admin over 9 years
      you share screenshot? or any more details.
    • Torsten
      Torsten almost 5 years
      Closing the Console tab and reopening it with Window->Show View->Console might also help.
  • user3497430
    user3497430 over 9 years
    I reset perspective and open console.it shows me console with red button on.i also click on terminate all button.still i will not work.
  • user3497430
    user3497430 over 9 years
    Hey one more thing i am using j2ee project in workspace.so is it causing some problem??
  • Elliott Frisch
    Elliott Frisch over 9 years
    Make sure that you're running Demo1. Also, please edit your question instead of adding comments.
  • Thiago Silva
    Thiago Silva almost 4 years
    Cant belevie this was the problem! LOL Worked for me.
  • GabrielOshiro
    GabrielOshiro almost 4 years
    Welcome to SO! This is a new answer to an old question, please explain why your answer is different from the previous.
  • TSG
    TSG almost 4 years
    This question is not asking about how to add PATH. For future contributions, please try to ask for clarifications through comments, if the original question is not clear enough.