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 199790 - Unable to find Main class
Summary: Unable to find Main class
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-30 15:45 UTC by javydreamercsw
Modified: 2016-07-07 07:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project Libraries (3.73 MB, application/zip)
2011-06-30 15:47 UTC, javydreamercsw
Details
Project (3.74 MB, application/zip)
2011-06-30 15:48 UTC, javydreamercsw
Details
Affected user dir (3.34 MB, application/x-zip-compressed)
2011-07-01 17:05 UTC, javydreamercsw
Details
Affected user dir 1/15 (8.78 MB, application/zip)
2011-07-06 14:21 UTC, javydreamercsw
Details
Affected user dir 2/15 (10.00 MB, application/octet-stream)
2011-07-06 14:24 UTC, javydreamercsw
Details
Affected user dir 3/15 (10.00 MB, application/octet-stream)
2011-07-06 14:26 UTC, javydreamercsw
Details
Affected user dir 4/15 (10.00 MB, application/octet-stream)
2011-07-06 15:00 UTC, javydreamercsw
Details
Affected user dir 5/15 (10.00 MB, application/octet-stream)
2011-07-06 15:02 UTC, javydreamercsw
Details
Affected user dir 6/15 (10.00 MB, application/octet-stream)
2011-07-06 16:19 UTC, javydreamercsw
Details
Affected user dir 7/15 (10.00 MB, application/octet-stream)
2011-07-06 16:22 UTC, javydreamercsw
Details
Affected user dir 8/15 (10.00 MB, application/octet-stream)
2011-07-06 16:24 UTC, javydreamercsw
Details
Affected user dir 9/15 (10.00 MB, application/octet-stream)
2011-07-06 16:26 UTC, javydreamercsw
Details
Affected user dir 10/15 (10.00 MB, application/octet-stream)
2011-07-06 16:27 UTC, javydreamercsw
Details
Affected user dir 11/15 (10.00 MB, application/octet-stream)
2011-07-06 16:28 UTC, javydreamercsw
Details
Affected user dir 12/15 (10.00 MB, application/octet-stream)
2011-07-06 16:30 UTC, javydreamercsw
Details
Affected user dir 13/15 (10.00 MB, application/octet-stream)
2011-07-06 16:34 UTC, javydreamercsw
Details
Affected user dir 14/15 (10.00 MB, application/octet-stream)
2011-07-06 16:36 UTC, javydreamercsw
Details
Affected user dir 15/16 (10.00 MB, application/octet-stream)
2011-07-06 16:40 UTC, javydreamercsw
Details
Affected user dir 16/16 (10.00 MB, application/octet-stream)
2011-07-06 16:41 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-06-30 15:45:45 UTC
If I create a project with a main class defined (in the wizard) everything is fine. If I try with a project without a main class and then create a main class afterwards NetBeans is unable to find it.

See attachment for project sample.
Comment 1 javydreamercsw 2011-06-30 15:47:11 UTC
Created attachment 109172 [details]
Project Libraries
Comment 2 javydreamercsw 2011-06-30 15:48:15 UTC
Created attachment 109173 [details]
Project
Comment 3 javydreamercsw 2011-06-30 15:55:51 UTC
Attempting to run it on 7.0 works fine as it prompts to select main class and the main class is listed. In 7.0.1 it prompts but there's nothing listed.
Comment 4 Stepan Zebra 2011-06-30 17:29:23 UTC
Unable to reproduce -> lowering priority.

Maybe caused by some cache problem. Does it happen if you start IDE with fresh userdir?
Comment 5 javydreamercsw 2011-07-01 13:13:34 UTC
For got to let you know I'm using JDK 7 build #147.

I was unable to reproduce it with a clean user dir. Want a zip of my dir for further investigation?
Comment 6 Tomas Zezula 2011-07-01 13:17:52 UTC
If you still have the user dir causing the problem, it will be good to have it.
If you modify the file with a main method does it appear among main classes?
Comment 7 javydreamercsw 2011-07-01 16:59:20 UTC
No, it doesn't appear. I'll be uploading the user dir in a bit. Might take some time (probably need to split)
Comment 8 javydreamercsw 2011-07-01 17:05:27 UTC
Created attachment 109198 [details]
Affected user dir
Comment 9 javydreamercsw 2011-07-04 16:30:23 UTC
I'll reattach it sometime tomorrow when I'm back at work (where the files are)
Comment 10 javydreamercsw 2011-07-06 14:21:47 UTC
Created attachment 109256 [details]
Affected user dir 1/15
Comment 11 javydreamercsw 2011-07-06 14:24:21 UTC
Created attachment 109257 [details]
Affected user dir 2/15
Comment 12 javydreamercsw 2011-07-06 14:26:21 UTC
Created attachment 109258 [details]
Affected user dir 3/15
Comment 13 javydreamercsw 2011-07-06 15:00:37 UTC
Created attachment 109259 [details]
Affected user dir 4/15
Comment 14 javydreamercsw 2011-07-06 15:02:18 UTC
Created attachment 109260 [details]
Affected user dir 5/15
Comment 15 javydreamercsw 2011-07-06 16:19:59 UTC
Created attachment 109263 [details]
Affected user dir 6/15
Comment 16 javydreamercsw 2011-07-06 16:22:37 UTC
Created attachment 109264 [details]
Affected user dir 7/15
Comment 17 javydreamercsw 2011-07-06 16:24:59 UTC
Created attachment 109265 [details]
Affected user dir 8/15
Comment 18 javydreamercsw 2011-07-06 16:26:47 UTC
Created attachment 109266 [details]
Affected user dir 9/15
Comment 19 javydreamercsw 2011-07-06 16:27:48 UTC
Created attachment 109267 [details]
Affected user dir 10/15
Comment 20 javydreamercsw 2011-07-06 16:28:53 UTC
Created attachment 109268 [details]
Affected user dir 11/15
Comment 21 javydreamercsw 2011-07-06 16:30:40 UTC
Created attachment 109269 [details]
Affected user dir 12/15
Comment 22 javydreamercsw 2011-07-06 16:34:40 UTC
Created attachment 109270 [details]
Affected user dir 13/15
Comment 23 javydreamercsw 2011-07-06 16:36:32 UTC
Created attachment 109271 [details]
Affected user dir 14/15
Comment 24 javydreamercsw 2011-07-06 16:40:37 UTC
Created attachment 109272 [details]
Affected user dir 15/16
Comment 25 javydreamercsw 2011-07-06 16:41:45 UTC
Created attachment 109273 [details]
Affected user dir 16/16
Comment 26 javydreamercsw 2011-07-06 16:42:45 UTC
Sorry it took me so long. Finally the user dir is attached. Hope it works now.
Comment 27 Stepan Zebra 2011-07-07 11:47:38 UTC
Thank you for your effort. I've managed to successfully download and unzip the full userdir.

Tomas, I've repacked the userdir into single zip file and uploaded it to internal address, so it's avaliable for fast&easy download:

http://jupiter.czech.sun.com/wiki/view/NbQE/Issue199790
Comment 28 Tomas Zezula 2011-07-11 08:30:37 UTC
Thanks!
I am now back from vacation and I will look at at as soon as possible.
Comment 29 Martin Balin 2016-07-07 07:16:18 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss