Eclipse Console not showing output

坚强是说给别人听的谎言 提交于 2019-12-01 03:37:18

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

Make sure that the project structure should be as follows:

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");
}

[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.

This will work definitely.

Click on Helps on the top bar. then click on Check for Updates. And update whatever updates are generated for your IDE. Helps> Check for Updates > ....

Hope it will fix your problem.

I had the same problem just figured out the solution. Just check your main method it would be

public void main(String[] args){ 

just change it to this:

public static void main(String[] args){

I had the same problem using jre7. Changed to jdk 1.7 and Eclipse console started showing outputs again.

  1. Just right click on console window and click Terminate /Disconnect all.
  2. Run the class again
  3. Done !!!
Hans

None of the above. What helped in my case:

Run > Run configurations > Common > uncheck Launch in background (last tab all the way at the bottom).

Then it showed the error why the thing wouldnt start.

In my case: a project dependency to a project which I had closed.

See (rightclick) Project > Build path > Configure build path.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!