原文:Eclipse 报错:Editor does not contain a main type 解决方案

. Eclipse 中运行Java 出现报错Editor does not contain a main type,这里以 Hello world 程序为例 . 执行的Java程序所在目录没有被认定为源文件包,换句话说,该程序所在的目录不能被正常编译运行 可能是不小心将src源文件包转换成了普通包 可能是新建了一个包,没有转换成源文件包 . 点击右键,选择 Build Path 将该文件夹作为源 ...

2021-07-22 11:59 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
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
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
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM