问题描述
每当我在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获得一个空白控制台,其中包含以下已终止的消息
I get a blank console with the following terminated message
构建路径有问题吗?
我的代码是一个基本的hello世界application
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");
}
}
推荐答案
终止意味着(程序或工具......)的执行完成且JVM退出。这并不表示任何事情本身都有问题。
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.
通常情况下,如果程序向system.out或System.err发送了任何内容,你会在控制台中看到它。
Normally, if a program has sent anything to system.out or System.err, you would see it in the console, though.
这篇关于控制台在eclipse中显示已终止的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!