“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。
是因为.java文件不在项目的src路径内,也就是说源代码未被eclipse编译,字节码不存在无法运行了。我在新建java project时勾选了Create separate folders for sources and class files。事实上,不应使用默认 项,应勾选Use project folder for sources and class files。
相关文章推荐
- NLTEST to test the trust relationship between a workstation and domain
- WARNING: The first attempt to start Xvnc failed, possibly because the font
- Pku oj 2027 No Brainer(水题)
- LeetCode笔记:217. Contains Duplicate
- 基于Alphabet剪枝的五子棋AI
- IAR之调试报错Flash verification failed.
- it.sauronsoftware.ftp4j.FTPException [code=426, message= Failure writing network stream.
- SGU 121 Bridges painting(构造)
- 单独使用explain plan
- linker command failed with exit code 1 (use -v to see invocation)
- xcode7 __weak 导致报错 is unavailable
- error: linker command failed with exit code 1 (use -v to see invocation)
- 使用苹果airport路由器的WDS功能扩展wifi覆盖范围的设置方法
- http://www.cnblogs.com/armyfai/p/3985660.html svn教程
- 文字记录,对话吴恩达(Andrew Ng):超级大咖深度解析人工智能的发展现状与未来
- CF #335 div1 A. Sorting Railway Cars
- sleep和wait区别
- torch demo:train-on-cifar(未完成待编辑)
- 使用SVN clang: error: linker command failed with exi
- lock和wait+signal