Main method not found even if I've declared it

后端 未结 7 1717
感动是毒
感动是毒 2020-11-27 07:31

I want to create a simple java class, with a main method, but when I compile my code, I get this error message :

Error: Main method not found in class

相关标签:
7条回答
  • 2020-11-27 08:09

    Try commenting the first line.

    //package errors;
    
    0 讨论(0)
提交回复
热议问题