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 44017 - Debugger ignores project main class
Summary: Debugger ignores project main class
Status: CLOSED DUPLICATE of bug 41549
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-05-31 08:35 UTC by Milan Kubec
Modified: 2006-03-24 10:12 UTC (History)
0 users

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 Milan Kubec 2004-05-31 08:35:53 UTC
[custom build 20040531, JDK 1.4.2]

Steps to reproduce:
1) I created dummy project with no main class in
wizard.
2) Created one simple main class
3) F6 - no main class was set, so I picked one
from list - Project was started
4) Invoked Run Main Project in Debugger

and I got following error.

debug-start-debuggee:
/tmp/JavaApplication2/nbproject/build-impl.xml:267:
Following error occured while executing this line
/tmp/JavaApplication2/nbproject/build-impl.xml:149:
Classname must not be null.
BUILD FAILED (total time: 0 seconds)
Comment 1 Milan Kubec 2004-05-31 08:44:40 UTC
I forgot to mention that the main class was in default package.

Another similar occurence of the same error:

debug-start-debuggee:
Exception in thread "main" java.lang.NoClassDefFoundError:
javaapplication1/Main

in fact another class was set as Main, also in default package. The
class mentioned in the error message is default Main class if project
main class is set by New Project wizard.
Comment 2 Jan Becicka 2004-07-13 15:58:55 UTC

*** This issue has been marked as a duplicate of 41549 ***
Comment 3 Milan Kubec 2004-07-16 14:30:33 UTC
This is not duplicate at all. The issue is not about the message
printed but about ignoring already set main class. But it's already fixed.