使用eclipse运行带有main函数的Java文件时,出现editor does not contain a main type的错误框
来源:互联网 发布:2k17贝克汉姆捏脸数据 编辑:程序博客网 时间:2024/05/29 19:41
使用eclipse运行带有main函数的Java文件时,出现editor does not contain a main type的错误框
今天从SVN上更新了一下程序,使用用eclipse时,打算运行带有main函数的Java文件时,却
出现editor does not contain a main type的错误框。于是问了一下度娘,问题迅速得到了解决:原
来这个class所在包没有被添加到build path中。
解决方法:在左侧的package explorer中右击这个class所在包的上一级目录
--build path--use as source folder。这样就解决问题了。重新打开class,再run一下,ok了。
0 0
- 使用eclipse运行带有main函数的Java文件时,出现editor does not contain a main type的错误框
- Eclipse 软件 Java 解决:出现的editor does not contain a main type错误框 问题
- eclipse的editor does not contain a main type错误
- Eclipse editor does not contain a main type的解决方案
- Eclipse下有main函数类运行报错: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或者Selection 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的解决方案
- 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
- editor does not contain a main type
- editor does not contain a main type
- editor does not contain a main type
- Android Framework中的Application Framework层介绍
- Undefined symbols for architecture x86_64
- SharePoint 2013 App Development读书笔记2
- linux命令:more命令
- Linux ls源码分析
- 使用eclipse运行带有main函数的Java文件时,出现editor does not contain a main type的错误框
- centos 6.4编译busybox报错 "Trying libraries: crypt m"
- C++中CONST的用法总结
- 与GIS相关的SCI、EI期刊与会议
- 逻辑Data Guard的配置
- UML
- UNIX操作系统类型
- IOS ANE的坑爹之路二
- CSS 3新特性学习----用户界面