Editor does not contain a main type

1、错误描述



2、错误原因

     在含有main方法的类中,运行应用程序,却提示这个错误;编译器不包含main类型


3、解决办法

(1)选择该Java类上一级文件,build path--->use as source folder

(2)然后再次打开该类,Run Application

原文地址:https://www.cnblogs.com/hzcya1995/p/13313842.html