eclipse中Editors does not contain a main type 图解处理方法
2014-09-02 21:11
381 查看
刚刚突然出现了这个错误“Editors does not contain a main type”
就搜索各大网站寻找解决方案,但是网上的问题并不能真正的使我解决这个问题,所以就不断的尝试,最后得出了处理方法。
原因就是是因为.java文件不在项目的src路径内,也就是说源代码未被eclipse编译,字节码不存在无法运行了。
但是根据网络上的答案不太好解决这一问题,来说说我的处理方法。
又总结出一个方法二
方法一
选择project,再点OK
之后右键新建的项目
new-->class
在新建的dsa.java写代码你的程序就可以正常运行了!
方法2
右键包内 . JAVA 文件 Run As 内 最下面的 Run Configurations...
之后问题就完美解决了、
如果解决了你的方案,给个评论给予支持,谢谢!
就搜索各大网站寻找解决方案,但是网上的问题并不能真正的使我解决这个问题,所以就不断的尝试,最后得出了处理方法。
原因就是是因为.java文件不在项目的src路径内,也就是说源代码未被eclipse编译,字节码不存在无法运行了。
但是根据网络上的答案不太好解决这一问题,来说说我的处理方法。
又总结出一个方法二
方法一
正常的右键new-->java project
单击红色方框 Configure default..
之后右键新建的项目
new-->class
在新建的dsa.java写代码你的程序就可以正常运行了!
方法2
右键包内 . JAVA 文件 Run As 内 最下面的 Run Configurations...
之后问题就完美解决了、
如果解决了你的方案,给个评论给予支持,谢谢!
相关文章推荐
- eclipse解决editor does not contain a main type的方法
- eclipse解决editor does not contain a main type的方法
- eclipse解决editor does not contain a main type的方法
- Eclipse中Editor does not contain a main type 解决方法
- eclipse解决editor does not contain a main type的方法
- eclipse解决editor does not contain a main type的方法
- eclipse解决editor does not contain a main type的方法
- eclipse解决editor does not contain a main type的方法
- java" selection does not contain a main type"的问题处理方法
- editor does not contain a main type" 错误解决方法
- Eclipse下有main函数类运行报错:Editor does not contain a main type
- Eclipse报错 "Selection does not contain a main Type"
- "editor does not contain a main type" 错误解决方法
- Editor does not contain a main type ,.metadata\.plugins\org.eclipse.core.resources\.snap
- 使用eclipse运行带有main函数的Java文件时,出现editor does not contain a main type的错误框
- Eclipse环境开发java:Selection does not contain a main type
- eclipse 中运行代码 出现:editor does not contain a main type
- Eclipse editor does not contain a main type的解决方案
- eclipse/myeclipse 解决editor does not contain a main type的方法
- Eclipse 软件 Java 解决:出现的editor does not contain a main type错误框 问题