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.

Bug 44265 - "Run file" disabled in NBM project type
Summary: "Run file" disabled in NBM project type
Status: RESOLVED DUPLICATE of bug 66422
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@apisupport
URL:
Keywords:
Depends on:
Blocks: 42680
  Show dependency tree
 
Reported: 2004-06-03 10:07 UTC by Petr Nejedly
Modified: 2011-04-12 14:33 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Nejedly 2004-06-03 10:07:11 UTC
Mo matter which file I select, the Run->Run
other->Run file action is constantly disabled.
Comment 1 Petr Nejedly 2004-06-03 10:17:44 UTC
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.
Comment 2 Jesse Glick 2004-06-03 22:37:02 UTC
There is no defined semantics for it in the NBM project type;
intentionally omitted.
Comment 3 Petr Nejedly 2005-03-29 08:48:32 UTC
OK
Comment 4 wobster 2009-08-11 12:47:59 UTC
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). 
Comment 5 rmichalsky 2009-08-11 13:01:02 UTC
> 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.
Comment 6 Jesse Glick 2011-04-12 14:33:53 UTC

*** This bug has been marked as a duplicate of bug 66422 ***