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