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.
[ BUILD # : 201212050001 ] [ JDK VERSION : 1.7.0_09 ] Steps: * create a NB Module using the 'new project' wizard * create a java class with a main method ACTUAL: the class with the main method cannot be run (the run file action is disabled) EXPECTED: the class with the main method run (the run file action is enabled and working) FYI: * The same class works in a standard java application. * http://netbeans.org/bugzilla/show_bug.cgi?id=89714 * http://netbeans.org/bugzilla/show_bug.cgi?id=223062 (does not work in maven projects too) Product Version: NetBeans IDE Dev (Build 201212050001) Java: 1.7.0_09; Java HotSpot(TM) 64-Bit Server VM 23.5-b02 Runtime: Java(TM) SE Runtime Environment 1.7.0_09-b05 System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Did it sometimes work? According to http://hg.netbeans.org/core-main/file/56b61610edb4/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/ModuleActions.java#l217 the action is available only for test files - intentionally??
(In reply to comment #1) > Did it sometimes work? According to > http://hg.netbeans.org/core-main/file/56b61610edb4/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/ModuleActions.java#l217 > the action is available only for test files - intentionally?? Yes. "The same class works in a standard java application."
> Yes. "The same class works in a standard java application." I meant, did it ever work for NB module project?
AFAIK it was never implemented in module projects, please note that making it work requires adding build script targets to the apisupport harness most likely.