This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[custom build 20040531, JDK 1.4.2] Steps to reproduce: 1) I created dummy project with no main class in wizard. 2) Created one simple main class 3) F6 - no main class was set, so I picked one from list - Project was started 4) Invoked Run Main Project in Debugger and I got following error. debug-start-debuggee: /tmp/JavaApplication2/nbproject/build-impl.xml:267: Following error occured while executing this line /tmp/JavaApplication2/nbproject/build-impl.xml:149: Classname must not be null. BUILD FAILED (total time: 0 seconds)
I forgot to mention that the main class was in default package. Another similar occurence of the same error: debug-start-debuggee: Exception in thread "main" java.lang.NoClassDefFoundError: javaapplication1/Main in fact another class was set as Main, also in default package. The class mentioned in the error message is default Main class if project main class is set by New Project wizard.
*** This issue has been marked as a duplicate of 41549 ***
This is not duplicate at all. The issue is not about the message printed but about ignoring already set main class. But it's already fixed.