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 41549 - Need better error message when running project when main class is not set
Summary: Need better error message when running project when main class is not set
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
: 44017 (view as bug list)
Depends on:
Blocks: 41537
  Show dependency tree
Reported: 2004-03-31 15:22 UTC by Petr Jiricka
Modified: 2004-08-13 12:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2004-03-31 15:22:33 UTC
1. Create a new J2SE project, do not ask the
wizard to create a main class
2. Run this project
3. The following error will be printed in the
output window:

C:\...\Pr1\build.xml:25: Following error occured
while executing this line
C:\...\Pr1\nbproject\build-impl.xml:82: Classname
must not be null.
BUILD FAILED (total time: 1 second)

This message is hard to parse. There should be a
better message that will alert the user about
missing main class.
Comment 1 Jan Becicka 2004-07-13 15:58:54 UTC
*** Issue 44017 has been marked as a duplicate of this issue. ***
Comment 2 Jesse Glick 2004-08-04 02:04:25 UTC
Long since fixed.