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

Summary: Need better error message when running project when main class is not set
Product: java Reporter: Petr Jiricka <pjiricka>
Component: ProjectAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41537    

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.