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 113321 - Provide a way how to check/ensure that main class is correctly set for J2SE project
Summary: Provide a way how to check/ensure that main class is correctly set for J2SE p...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
Depends on:
Reported: 2007-08-21 12:02 UTC by Jiri Sedlacek
Modified: 2011-08-31 14:07 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2007-08-21 12:02:11 UTC
To set up profiling configuration correctly, the profiler needs to know what is the main class of j2se project being
profiled. Currently I can't see any way how to reuse the check implemented in which performs exactly what we need - check if main class is
correctly set and appropriate fileobject exists for a j2se project and eventually allow the user to select new main class.

Currently the profiler uses similar UI copied from
and to select the main class for profiling but does
not set the main class to the project. Requested enhancement would prevent such duplicity.

Ideally this could be fixed by providing simple 'boolean checkProjectMainClass(Project project)' which will return true
if main class is correctly set or new has been selected or false if main class is still invalid.