Netbeans - class does not have a main method

后端 未结 12 2642
别跟我提以往
别跟我提以往 2020-12-06 14:28

My program is just a simple System.out.println(\"\"); But netbeans cannot find the main method. Is netbeans 6.7.1 conflict with WIN7? Any possible error?

12条回答
  •  猫巷女王i
    2020-12-06 15:23

    If you named your class with the keyword in Java, your program wouldn't be recognized that it had the main method.

提交回复
热议问题