Netbeans - Error: Could not find or load main class

前端 未结 21 2120
时光说笑
时光说笑 2020-11-28 16:01

So I\'m making a java application in Neatbeans 7.4, been working at it for a while, everything was fine, running the project worked fine, but now when I hit run project, I g

21条回答
  •  北海茫月
    2020-11-28 16:16

    You can solve it in these steps

    1. Right-click on the project in the left toolbar.
    2. Click on properties.
    3. Click on Run
    4. Click the browse button on the right side.(select your main class)
    5. Click ok

提交回复
热议问题