您的位置:首页 > 大数据 > 人工智能

“selection does not contain a main type”解决方法

2016-04-15 10:48 519 查看
在运行java程序时,出现了错误“selection does not contain a main type”。

是因为.java文件不在项目的src路径内,也就是说源代码未被eclipse编译,字节码不存在无法运行了。我在新建java project时勾选了Create separate folders for sources and class files。事实上,不应使用默认 项,应勾选Use project folder for sources and class files。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: