不止这个类,其他工程包里面也是显示这个错误,网上搜了半天也没找到有用的答案
有这个
没有写main函数。
看不到代码无法确认,按报错应该是main方法没写,或者是写错了,参考一下:public static void main(String args[]){
}
选在有main方法的类运行