Eclipse:The selection cannot be launched,and there are no recent launches

Eclipse:The selection cannot be launched,and there are no recent launches

刚刚装上eclipse,想写个Java程序来试试。但是在写好后不管是点击 run 还是 debug 程序都不能运行,都会弹出一个窗口,内容为:The selection cannot be launched,and there are no recent launches !意思是该选项不能执行,最近没有执行的记录。

解决:出现这种情况是以为main写错了,把main写成了mian,修改过来就可以直接运行了。

猜你喜欢

转载自blog.csdn.net/weixin_44365021/article/details/85604462