原文: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