Netbeans - Error: Could not find or load main class

前端 未结 21 2119
时光说笑
时光说笑 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:27

    I just ran into this problem. I was running my source from the command line and kept getting the same error. It turns out that I needed to remove the package name from my source code and then the command line compiler was happy.

    The solutions above didn't work for me so maybe this will work for someone else with a similar problem.

提交回复
热议问题