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

轉自:http: hi.baidu.com zh m zhou blog item bb ba baa e fa fd.html作者:pocky 今天用eclipse,當打算run一個帶有main函數的class時,出現editor does not contain a main type的錯誤框。 baidu了一下,迅速解決問題:原來這個class所在包沒有被添加到build path中。 解決 ...

2012-04-04 18:29 1 8024 推薦指數:

查看詳情

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 ...

Tue Apr 19 06:56:00 CST 2016 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
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