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.
The option "Run file" is disabled for classes with a main method when this class is part of a module (inside a module suite application) Running a simple main method should be possible even within a module suite application.
It is offered for classes with a main method inside a test root, as a convenience for writing demos and the like. Since a module has an entirely different runtime environment than the standard Java launcher and the main method would not be used in production code, this is not supported for classes in the main source root.
*** This bug has been marked as a duplicate of bug 66422 ***