eclipse解决editor does not contain a main type的方法
2017-07-11 09:56
465 查看
今天用eclipse,当打算run一个带有main函数的class时(这个java文件创建在文件夹A中),出现editor does not contain a main type的错误框。
另外,在创建的文件夹A中,没法创建package结构。
baidu了一下,迅速解决问题:原来这个文件夹A没有被添加到build path中。
解决方法:在项目右键->properties->Java build path-->source中add Folder。这样就解决问题了。
重新打开.java,再run一下,ok了。
另外,在创建的文件夹A中,没法创建package结构。
baidu了一下,迅速解决问题:原来这个文件夹A没有被添加到build path中。
解决方法:在项目右键->properties->Java build path-->source中add Folder。这样就解决问题了。
重新打开.java,再run一下,ok了。
相关文章推荐
- 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 软件 Java 解决:出现的editor does not contain a main type错误框 问题
- "editor does not contain a main type" 错误解决方法
- Eclipse 软件 Java 解决:出现的editor does not contain a main type错误框 问题
- editor does not contain a main type" 错误解决方法
- Eclipse 软件 Java 解决:出现的editor does not contain a main type错误框 问题
- eclipse/myeclipse 解决editor does not contain a main type的方法
- editor does not contain a main type" 错误解决方法
- Eclipse editor does not contain a main type的解决方案
- editor does not contain a main type" 错误解决方
- Editor does not contain a main type错误提示,怎么解决?
- Editor does not contain a main type 问题解决
- Eclipse下有main函数类运行报错:Editor does not contain a main type
- 使用eclipse运行带有main函数的Java文件时,出现editor does not contain a main type的错误框