1. 程式人生 > >Eclipse:The selection cannot be launched,and there are no recent launches

Eclipse:The selection cannot be launched,and there are no recent launches

Eclipse:The selection cannot be launched,and there are no recent launches

剛剛裝上eclipse,想寫個Java程式來試試。但是在寫好後不管是點選 run 還是 debug 程式都不能執行,都會彈出一個視窗,內容為:The selection cannot be launched,and there are no recent launches !意思是該選項不能執行,最近沒有執行的記錄。

解決:出現這種情況是以為main寫錯了,把main寫成了mian,修改過來就可以直接運行了。