首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

简单程序run后出现selection does not contain a main type异常

2012-03-30 
简单程序run后出现selection does not contain a main type错误程序有main函数,在Eclipse中运行后出现sele

简单程序run后出现selection does not contain a main type错误
程序有main函数,在Eclipse中运行后出现selection does not contain a main type错误,环境配置是正确的

[解决办法]
唯一解释,楼主直接按的顶部的运行按钮,而那个默认又不是当前的类。

请参照1楼的做法,现在左侧树状目录中选中你的这个类。千万别选错了!!

鼠标右键然后选择run as java application

热点排行