Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Console shows terminated message in eclipse

Tags:

java

eclipse

Whenever I run a program in eclipse whose configuration is

Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 2 
Build id: 20120216-1857

I get a blank console with the following terminated message

enter image description here

Is there something wrong with the build path?

My code is a basic hello world application

import java.lang.*;
 public class Connection {

/**
 * @param args
 */
public static void main(String[] args) {
    // TODO Auto-generated method stub
    System.out.println("Hello World");
}

}
like image 764
user544079 Avatar asked Jan 19 '13 01:01

user544079


2 Answers

Terminated means that the execution (of your program, or tool, ...) is complete and the JVM exited. It is not an indication that anything has gone wrong in itself.

Whether your program exits with no error, or with a nasty stack trace, you'll see this message.

Normally, if a program has sent anything to system.out or System.err, you would see it in the console, though.

There are additional suggestions here

like image 111
Patrice M. Avatar answered Oct 28 '22 05:10

Patrice M.


  1. Close Console and reopen - Window -> Show View -> Console.

  2. Brute force method - Restart Eclipse.

  3. If above doesn't work for you try this. Here a lot of other possible problems and solutions are there.

like image 33
Ajay Kumar Avatar answered Oct 28 '22 04:10

Ajay Kumar