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 223062 - The Run File action is no available even if the class has a main method
Summary: The Run File action is no available even if the class has a main method
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-30 14:39 UTC by frederic.deniger
Modified: 2013-02-27 15:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (90.33 KB, text/plain)
2012-11-30 14:39 UTC, frederic.deniger
Details
screenshot (28.85 KB, image/png)
2012-11-30 14:42 UTC, frederic.deniger
Details
java file with main method (1.24 KB, text/x-java-source)
2012-11-30 20:02 UTC, frederic.deniger
Details
the pom file used (1.19 KB, text/xml)
2012-11-30 20:02 UTC, frederic.deniger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description frederic.deniger 2012-11-30 14:39:32 UTC
Product Version = NetBeans IDE 7.3 Beta 2 (Build 201211062253)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.5-b02
Comment 1 frederic.deniger 2012-11-30 14:39:38 UTC
Created attachment 128657 [details]
IDE log
Comment 2 frederic.deniger 2012-11-30 14:42:21 UTC
Created attachment 128658 [details]
screenshot
Comment 3 Jiri Prox 2012-11-30 18:04:49 UTC
Can you please attach the problematic file (or at least the main method)? 

Thanks
Comment 4 frederic.deniger 2012-11-30 20:02:05 UTC
Created attachment 128677 [details]
java file with main method
Comment 5 frederic.deniger 2012-11-30 20:02:37 UTC
Created attachment 128678 [details]
the pom file used
Comment 6 frederic.deniger 2012-11-30 20:05:37 UTC
I've just added theses attachments:
the file pom.xml and the java file with a main method.
FYI:
I used netbeans wizard to create the maven module
If I open the project with Netbeabns 7.2, the run action is available
Comment 7 Tomas Zezula 2012-12-04 13:05:56 UTC
mvn project
Comment 8 Milos Kleint 2012-12-11 09:15:33 UTC
in general works with maven projects, no matter what maven packaging. worked for me in latest dev builds.

reassigning back to java, please note in the screenshot the missing main class icon badge, this hints at some problem with java infrastructure and is orthogonal to project type used.
Comment 9 Jan Lahoda 2012-12-12 13:35:57 UTC
Is there a way for me to reproduce the problem? I tried the given Java source, the given pom.xml, and the executable badge was always correctly present (and removed when I removed the main method, and added back when I added the method back). Thanks.
Comment 10 Jan Lahoda 2013-02-27 15:28:33 UTC
Sorry, but I need a way to reproduce. Please describe what I should do to see the problem and reopen. Thanks.