java運行main方法時候Eclipse中報editor does not contain a main type解決辦法

1.報錯

  • editor does not contain a main type
    editor does not contain a main type

2.原因

  • 當前的源代碼(所有的包)沒有被添加到build path中
  • src目錄出現錯誤

3.解決辦法
editor does not contain a main type解決辦法
editor does not contain a main type解決辦法

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