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.
Mo matter which file I select, the Run->Run other->Run file action is constantly disabled.
Ah, additional node: It seems that it works correctly in J2SE project type, so it probably doesn't work only in the NetBeans module project type.
There is no defined semantics for it in the NBM project type; intentionally omitted.
OK
When writing classes for a NetBeans modules often times you'd like to add a main routine to the class to test it. Right now there is no way to run the class other than creating a JUnit test. I don't really see why it is necessary to disable the "Run File" menu for this case, it just hamstrings the developer (customer).
> When writing classes for a NetBeans modules often times you'd like to add a main routine to the class to test it. Then write a test class for it, since 6.7 there is a support for running main method in test. It is only 2 clicks away and you can keep the tests without cluttering your code.
*** This bug has been marked as a duplicate of bug 66422 ***