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 197667 - Unable to run main method from within module project
Summary: Unable to run main method from within module project
Status: RESOLVED DUPLICATE of bug 66422
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 13:59 UTC by mklaehn
Modified: 2011-04-12 14:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mklaehn 2011-04-12 13:59:10 UTC
If I

1) create a Platform Application,
2) add a module to it,
3) add a Java class to that module and
4) insert a main method.

I can not run that file. Neither via the entry in the menubar nor the popup menu.

The usecase would be to test some small featureset without having to copy it into another javase project for testing.

>Log Session: Tuesday, April 12, 2011 2:59:13 PM CEST
>System Info: 
  Product Version         = NetBeans IDE Dev (Build nbms-and-javadoc-7011-on-20110412) (#6d9087a33b35)
  Operating System        = Windows 2000 version 5.0 running on x86
  Java; VM; Vendor        = 1.6.0_24; Java HotSpot(TM) Server VM 19.1-b02; Sun Microsystems Inc.
Comment 1 Jesse Glick 2011-04-12 14:34:38 UTC
Already possible so long as the class is in Test Packages rather than Source Packages. (Need not use JUnit.)

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