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 242233 - Create JavaFX Application with Preloader - Run results in no main class available to run with
Summary: Create JavaFX Application with Preloader - Run results in no main class avail...
Status: RESOLVED DUPLICATE of bug 239676
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC All
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-22 22:21 UTC by swpalmer
Modified: 2014-02-24 08:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot showing that no main classes are listed, but the java file for one is present. (68.90 KB, image/png)
2014-02-22 22:21 UTC, swpalmer
Details
screenshot showing failure to list JavaFX Application Classes (56.87 KB, image/png)
2014-02-22 22:55 UTC, swpalmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description swpalmer 2014-02-22 22:21:18 UTC
Created attachment 145496 [details]
screenshot showing that no main classes are listed, but the java file for one is present.

NB 8.0 RC1

Immediately after crating a new JavaFX Application with preloaded:
- Select the main project in the projects view and choose Run from the context menu.
- A dialog opens asking to pick the main class but no classes are available to pick.

For some reason it is not aware of the main class that was created for the project by the wizard.
Comment 1 Lou Dasaro 2014-02-22 22:28:56 UTC
This happens for me if you try to RUN the project BEFORE background scanning is finished. 

Scott, does the project run AFTER allowing background scanning to finish?

My environment:
Product Version: NetBeans IDE 8.0 RC1 (Build 201402202300)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)
Comment 2 swpalmer 2014-02-22 22:55:35 UTC
Created attachment 145498 [details]
screenshot showing failure to list JavaFX Application Classes
Comment 3 swpalmer 2014-02-22 22:56:26 UTC
Also fails if you select "Build".  See screenshot of dialog asking for JavaFX Applications Class with none to choose from.
Comment 4 swpalmer 2014-02-22 22:57:17 UTC
Bumping to P2 since it is impossible to build the project.
Comment 5 swpalmer 2014-02-23 00:12:46 UTC
Yes, there is no background scan or processing running when I try this.  I just came back after watching TV for an hour and tried to Run and Build the project that was still open. I'm getting the same results.
Comment 6 swpalmer 2014-02-23 00:15:05 UTC
Likely a duplicate of Bug 239676.

Forcing a "Scan for external changes" fixes the issue as mentioned in that issue.
Comment 7 swpalmer 2014-02-23 00:16:18 UTC
Moving back to P3 since a workaround exists.
Comment 8 Roman Svitanic 2014-02-24 08:29:53 UTC
Marking as duplicate, since the root cause is same.

*** This bug has been marked as a duplicate of bug 239676 ***