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.
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).
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
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)
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.
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.
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!
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)
Very easy workaround of this issue is to select Source
(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.
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)
Roman, can we get the fix for this whiteboarded for a patch1 or point release?
*** Bug 242233 has been marked as a duplicate of this bug. ***
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
Just upgraded to: NetBeans IDE 8.0.2 (Build 201411181905) and this bug still happens.
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()); } }
(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.
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?
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.