Eclipse Console Does Not Show Output

I wrote a simple class that has a SOP statement for "Hello World". But the Eclipse console does not show output. Then I wrote the same program in a previously created project, and it worked perfectly. I open the console as shown below:

Window-> Show View-> Console.

But it does not work. I am using a j2ee project in the same workspace. Any ideas? Please help. I am stuck due to this problem.

+6
source share
6 answers

Go to "Window> Reset Perspective", which will be the Reset window's default settings. You may then need to stop any running Java processes. I suggest that you then click “Delete all completed launches”, and if the red “Complete all” is still available, click on this icon.

Remove all Terminated Launches

+11
source

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

Example:

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

Make sure the project structure should be as follows:

enter image description here

+1
source

I had the same problem, just found out a solution. Just check your main method:

 public void main(String[] args){ 

just change it to this:

 public static void main(String[] args){ 
0
source

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

0
source

Make sure you save the solution.

0
source

Source: https://habr.com/ru/post/980106/


All Articles