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 239676 - [80cat] Cannot BUILD first created JavaFX Application with Preloader project
Summary: [80cat] Cannot BUILD first created JavaFX Application with Preloader project
Status: NEW
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P3 normal with 1 vote (vote)
Assignee: Roman Svitanic
URL:
Keywords:
: 242233 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-20 08:34 UTC by Lou Dasaro
Modified: 2019-07-20 05:47 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the error when trying to build (214.21 KB, image/jpeg)
2013-12-20 08:34 UTC, Lou Dasaro
Details
Shows the error on Development build (149.78 KB, image/jpeg)
2013-12-20 17:23 UTC, Lou Dasaro
Details
Shows the error without Maven project present (147.46 KB, image/jpeg)
2013-12-28 07:46 UTC, Lou Dasaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lou Dasaro 2013-12-20 08:34:56 UTC
Created attachment 143357 [details]
Shows the error when trying to build

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2 <---
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18

Cannot create and build a JavaFX Application with Preloader project as the first action after the IDE starts up. Please try the following steps to reproduce the issue using NetBeans 7.4 Patch 2: 

1. Start the IDE and Select "New Project ..." 
2. Select Category "JavaFX", Project "JavaFX Application"
3. Tick the "Create Custom Preloaded" checkbox and click "Finish"
4. Build (or clean + build, same result) the project

Result: Dialog: "Browse JavaFX Application Classes" - with an empty list. 

Workaround: Build the preloader first, then the application project will build OR create a new project, and it will build (but the first one still will not).
Comment 1 Roman Svitanic 2013-12-20 08:55:43 UTC
Could you please try to reproduce this on the latest dev build? Thanks.

In patch2 there weren't any FX patches: https://netbeans.org/bugzilla/buglist.cgi?status_whiteboard_type=allwordssubstr&status_whiteboard=74patch2&list_id=408730
Comment 2 Lou Dasaro 2013-12-20 17:23:26 UTC
Created attachment 143378 [details]
Shows the error on Development build

Okay, tried test on latest Development build. Problem still exists.
Changed summary to reflect correct version. In addition to 7.4-patch2, this anomaly occurs on:
Product Version: NetBeans IDE Dev (Build 201312190002)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)
Comment 3 Lou Dasaro 2013-12-20 17:27:58 UTC
Roman: Please try this:

1. Close all projects in the projects window.
2. Create a Maven JavaFX project that uses JDK 7
3. Exit the IDE and launch it again.
4. After project scanning finishes, Select "New Project ..." 
5. Select Category "JavaFX", Project "JavaFX Application"
6. Tick the "Create Custom Preloaded" checkbox and click "Finish"
7. Build (or clean + build, same result) the project

I think it has something to do with the presence of the lone Maven project.
Comment 4 Roman Svitanic 2013-12-20 17:45:42 UTC
Lou, thanks, following the steps with maven project I am able to reproduce the issue. Without maven project I wasn't able to reproduce it.
Comment 5 Roman Svitanic 2013-12-20 18:10:36 UTC
adding Svata to CC, since ClassIndex.getElements returns empty Set in this (special) case (see Lou's steps with maven).

at org.netbeans.api.java.source.ClassIndex.getElements(ClassIndex.java:341)
at org.netbeans.modules.javafx2.project.JFXProjectUtils$1.run(JFXProjectUtils.java:282)
at org.netbeans.modules.javafx2.project.JFXProjectUtils$1.run(JFXProjectUtils.java:276)
at org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:83)
at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593)
at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:382)
at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:365)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203)
at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:336)
at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:422)
at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:414)
at org.netbeans.modules.javafx2.project.JFXProjectUtils.getAppClassNames(JFXProjectUtils.java:276)
at org.netbeans.modules.javafx2.project.JFXActionProvider.verifyApplicationClass(JFXActionProvider.java:377)
at org.netbeans.modules.javafx2.project.JFXActionProvider.invokeAction(JFXActionProvider.java:159)

Svata, could you have a look on it? Thanks!
Comment 6 Lou Dasaro 2013-12-28 07:46:29 UTC
Created attachment 143495 [details]
Shows the error without Maven project present

Shows the error without Maven project present. This was a JavaFX with FXML and Preloader project. I added a control in Scene Builder,saved, selected make controller, and then Run. See attachment for error. I tried again, but could not duplicate...

Product Version: NetBeans IDE Dev (Build 201312250002)
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)
Comment 7 Roman Svitanic 2014-01-02 10:43:36 UTC
Very easy workaround of this issue is to select Source
Comment 8 Roman Svitanic 2014-01-02 10:45:01 UTC
(In reply to Roman Svitanic from comment #7)
> Very easy workaround of this issue is to select Source

Very easy workaround of this issue is to select Source > Scan for External Changes . Then build/run will work.
Comment 9 Lou Dasaro 2014-02-22 22:38:44 UTC
This anomaly still present as described using:

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 10 Lou Dasaro 2014-02-23 03:45:05 UTC
Roman, can we get the fix for this whiteboarded for a patch1 or point release?
Comment 11 Roman Svitanic 2014-02-24 08:29:53 UTC
*** Bug 242233 has been marked as a duplicate of this bug. ***
Comment 12 Lou Dasaro 2014-08-18 19:06:41 UTC
Appears to have been fixed at some point prior to 8.0.1 FCS, where I am unable to duplicate the anomaly. Changing status to Resolved->FIXED
Comment 13 fish_jd 2015-06-17 18:22:01 UTC
Just upgraded to:
NetBeans IDE 8.0.2 (Build 201411181905)

and this bug still happens.
Comment 14 Elliander 2015-10-21 15:34:01 UTC
This error appeared for me while following project example 14.6 on page 544 of "Prentice Hall: Intro to Java Programming Comprehensive Version 10th Edition" The following is the ENTIRE program and it won't compile. It makes no difference if I override the start class and add a launch line either. I even tried adding an empty start method, but there appears to be no way to get this program to compile within NetBeans.


package bindingdemo;

import javafx.beans.property.DoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;


public class BindingDemo
{

    public static void main(String[] args) 
    {
        DoubleProperty d1 = new SimpleDoubleProperty(1);
        DoubleProperty d2 = new SimpleDoubleProperty(2);
        d1.bind(d2);
        System.out.println("d1 is " + d1.getValue() + " and d2 is " + d2.getValue());
        d2.setValue(70.2);
        System.out.println("d1 is " + d1.getValue() + " and d2 is " + d2.getValue());
        
        
    }
    
}
Comment 15 Lou Dasaro 2015-10-21 16:53:49 UTC
(In reply to Elliander from comment #14)
Reporter: Thank you for reporting. However, your issue has nothing to do with this bug. Having said that...
Although this is a Java project, "import javafx..." using JDK 7 will require that you add jfxrt.jar to ProjectProperties->Libraries->Compile. The jar can be found at <whereever your Java is kept>\jdk1.7.0_79\jre\lib\jfxrt.jar or similar. I used this with NetBeans IDE 8.0.2 running on JDK 7 and it ran fine.
This is a non-issue when target is JDK 8. Hope that helps.
Comment 16 electrofixion 2016-08-01 15:14:47 UTC
Nothing official, but the problem is not with JAVAFX, this has to do with neat-beans ability to configure JAVA programs as an extension to a JAVAFX program.

Netbeans has been given an additional feature that checks for dynamic classes and ask that a class-path is selected.

This happens when you remove the initial configuring that is specific to the self-created net-beans JAVAFX app.

Think of this this way; problem solving is relative; if we apply our current work to JAVAFX application building then our containment is solvable by the effort produced to make JAVAFX public. Otherwise we have a containment issue. We can solve containment issues by giving enough examples; but it's really best that JAVAFX really show; it's effort with some P-U-N-C-H. Can you say F-P-S?
Comment 17 vedantydv123 2019-07-20 05:47:02 UTC
Sheep run on the map, it must look good as they oscillate from shop to shop. Then just write in  https://clipboardwindows10.com/ the google treacle and recommend you the most expensive.