原文:editor does not contain a main type的解決方案

editor does not contain a main type的解決方案 今天用eclipse,當打算run一個帶有main函數的class時,出現editor does not contain a main type的錯誤框。 baidu了一下,迅速解決問題:原來這個class所在包沒有被添加到build path中。 解決方法:在左側的package explorer中右擊這個clas ...

2016-04-18 22:56 0 2119 推薦指數:

查看詳情

Eclipse 報錯:Editor does not contain a main type 解決方案

1. Eclipse 中運行Java 出現報錯 Editor does not contain a main type,這里以 Hello world 程序為例 2. 執行的Java程序所在目錄沒有被認定為源文件包,換句話說,該程序所在的目錄不能被正常編譯運行 可能是不小心 ...

Thu Jul 22 19:59:00 CST 2021 0 448
editor does not contain a main type解決方案

轉自:http://hi.baidu.com/zh_m_zhou/blog/item/8bb9ba025baa98e408fa93fd.html作者:pocky 今天用eclipse,當打算run一個帶有main函數的class時,出現editor does not contain a main ...

Thu Apr 05 02:29:00 CST 2012 1 8024
Eclipse報錯editor does not contain a main type

Eclipse運行項目報錯editor does not contain a main type 報錯原因:當前的源碼包沒有添加到build path中。 解決辦法:鼠標右擊項目--->Build path--->Configure Build path... ...

Thu Oct 18 02:50:00 CST 2018 0 1916
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM