eclipse 运行时出现editor does not contain a main type错误提示框 解决方法

当你运行java程序时出现 该提示框
eclipse 运行时出现editor does not contain a main type错误提示框 解决方法

出现此错误的原因:

当前的源代码(所有的包)没有被添加到 build path 中:(src 路径里面是文件目录的样子)
eclipse 运行时出现editor does not contain a main type错误提示框 解决方法

解决方法:

src 路径右键 -> Build Path -> Use as Source Folder
eclipse 运行时出现editor does not contain a main type错误提示框 解决方法
设置完成后,现在 scr 路径应该是这样的(不再是原来的文件夹目录的样子,而是就java包的样子)
eclipse 运行时出现editor does not contain a main type错误提示框 解决方法

搞定,到现在为止,运行程序,editor does not contain a main type错误框就不会在出现了。

eclipse 运行时出现editor does not contain a main type错误提示框 解决方法
== 如果还是不可以正常运行的话,建议重启一下!!! ==

相关文章:

  • 2021-04-06
  • 2022-01-21
  • 2021-07-16
  • 2021-04-01
猜你喜欢
  • 2021-10-31
  • 2022-12-23
  • 2021-08-28
  • 2021-04-27
  • 2021-06-28
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案