Eclipse的控制檯無信息輸出

Eclipse的控制檯無信息輸出,總是提示:No Consoles to display at this time,急
public class Test {
public static void main(String[] args) {
System.out.println("5757");
}

上面的代碼,Eclipse的控制檯不輸出5757,總是提示:No Consoles to display at this time。

解決方法    

Run->Run... ->在左邊的Java Application,選擇一個(如果沒有按右鍵新建一個)
    然後在右邊選擇Common tab選項,在Standard Input and Output中選中 Allocate Console

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章