Issue
Hi, I just installed Netbeans 10.0 and I can't run my Java project because apparently my main is missing but the class main is there!
I tried to right click the project and create a new main class but it didn't help.
the error
Solution
try to change the package name to another one which different from the project name, for example make it "hello_pkg", same for the class name, try to make all the 3 have different names to avoid any confusion.
for example:
- Project name: helloProject
- Package: hello_pkg
- Class : Hello
EDIT:(after providing more information in comments)
Netbeans 10 doesn't support JDK 14, use JDK 10 instead (or older)
Answered By - Bashir