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 85960 - Cannot detect main method
Summary: Cannot detect main method
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 87136
  Show dependency tree
 
Reported: 2006-09-27 22:19 UTC by Petr Hrebejk
Modified: 2007-02-19 13:46 UTC (History)
2 users (show)

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 Petr Hrebejk 2006-09-27 22:19:08 UTC
IDE cannot dectect class with main method so common j2se project or single file
can not be run from the IDE.


Jan Lahoda 07/07/2006 16:38:47 -----------------
	
	I did a slight modification, so all classes are considered to have "main"
method, so the project and single file can be runned.

This is obviously not correct fix (the user can attempt to run even a class
without main method), but I think this is an improvement.

The dialog with list of main classes is still not available.
Comment 1 Max Sauer 2006-11-13 10:27:43 UTC
This issue is still valid.
---
NetBeans IDE Dev (Build 200611121900)
1.6.0-rc; Java HotSpot(TM) 64-Bit Server VM 1.6.0-rc-b103
SunOS version 5.10 running on sparcv9
en (nb); ISO646-US
Comment 2 Tomas Zezula 2006-12-13 13:21:39 UTC
Fixid in: java/source/src/org/netbeans/api/java/source/SourceUtils 1.11
Comment 3 Max Sauer 2007-02-19 13:46:19 UTC
Verified.
---
NetBeans IDE Dev (Build 070219)
1.6.0; Java HotSpot(TM) Server VM 1.6.0-b105
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8