Editor does not contain a main type

来源:互联网 发布:php微信分销开源系统 编辑:程序博客网 时间:2024/05/18 16:15

1、错误描述



2、错误原因

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


3、解决办法

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

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

原创粉丝点击