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 49324 - NB complains about main class not set
Summary: NB complains about main class not set
Status: RESOLVED DUPLICATE of bug 48489
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-21 07:22 UTC by tboerkel
Modified: 2004-09-23 14:35 UTC (History)
3 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 tboerkel 2004-09-21 07:22:59 UTC
The newest q-build complains, that the main class
for the project is not set, if I want to start
debugging the project. Beta 1 did not complain.

But the main class is set and this class is even
selectable in the dialog for setting the main
class. Still NB does not recognize it.

It works with some other class, but I don't know
why. Maybe it has something to do with the class
having inner classes.

Using
netbeans-4_0-qbuild-bin-200409100847-10_Sep_2004_0847.zip,
JDK 1.4.2_05.
Comment 1 Milan Kubec 2004-09-21 08:30:05 UTC
Please try to delete var/cache/mdrstorage in your userdir after you
shutdown IDE and try if you can set main class then (expect longer
startup classpath scanning).
Comment 2 tboerkel 2004-09-21 10:33:50 UTC
That helped. I did not even have to reset the main class (it was
already set by typing in manually in project properties), it just
works now. Thanks! You can close the bug. But maybe Beta 2 should
delete the cache itself upon first start.
Comment 3 _ ttran 2004-09-21 16:29:58 UTC
beta2 will use a different userdir
Comment 4 Milan Kubec 2004-09-22 07:26:46 UTC
Sorry, but that resolution is tooo easy. There is some problem that
repository loses main class attribute (or how do you want to call it)
and this is not the only report of this problem. It's hard to
reproduce - it usually happens after some time of working with IDE,
but after that user is not able to run the project. 
Well, user will have different userdir in Beta2, it might fix the
problem for couple of days but it won't fix the problem in repository.
Comment 5 _ ttran 2004-09-23 10:05:07 UTC
you're saying that mdrstorage gets corrupted randomly after some days?
So it's in java or mdr module.

But java/project should try to be more defensive against case like
this.  I don't know if it's possible.  CC tzezula and jglick
Comment 6 Martin Matula 2004-09-23 14:35:54 UTC

*** This issue has been marked as a duplicate of 48489 ***