Netbeans - class does not have a main method

后端 未结 12 2647
别跟我提以往
别跟我提以往 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条回答
  •  难免孤独
    2020-12-06 15:33

    This happens when you move your main class location manually because Netbeans doesn't refresh one of its property files. Open nbproject/project.properties and change the value of main.class to the correct package location.

提交回复
热议问题