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.
Cannot build the JavaFX Demos and Samples downloaded from: http://www.java.net/download/jdk8/archive/b120/binaries/javafx_samples-8_0_0-ea-b120-windows-10_dec_2013.zip (https://jdk8.java.net/download.html) From NetBeans 8/Dev, could not build Ensemble8, could not run or debug 3DViewer 3DViewer: Error: Could not find or load main class com.javafx.experiments.jfx3dviewer.Jfx3dViewerApp Ensemble8: First, correct the Java 8 platform name in Properties->Libraries. Next, Build the project, and the error received is: Copying all sample source files to build dir C:\Users\Lu\Documents\NetBeansProjects\Ensemble8\build.xml:91: C:\Users\Lu\modules\graphics\src\main\docs\javafx\scene\doc-files does not exist. BUILD FAILED (total time: 0 seconds) These errors may belong to the JavaFX team, but in the interest of facilitating communication (and documenting), I am documenting them both here and at JavaFX-Jira (Runtime). Tested on Windows 8.1 and Ubuntu 12.04 LTS... Environment: Product Version: NetBeans IDE Dev (Build 201312160002) Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b62 Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b120 System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb) AND System: Linux version 3.2.0-55-generic running on amd64; Ubuntu 12.04 LTS 64b
Hi Lou, Thanks for finding out that there are (again) problems with Java FX samples. But unfortunately we can't do anything about this issue. Those projects in zip from link aren't valid Java FX projects, in fact they're Java SE projects. So therefore nothing from NetBeans Java FX support modules applies to these projects. You can verify this by comparing project.xml files - first from these samples and second from newly created JavaFX project. In project.xml of valid FX project you'll see <extension file="jfx-impl.xml" id="jfx3"> and other information about dependencies instructing the IDE that this project should be treated like FX, not SE. I have to close this issue as invalid. I recommend to the FX team to create new FX projects from scratch. Until the projects for FX samples are valid NetBeans 8.0 FX projects we simply can't do anything on FX support side to fix it, because IDE simply doesn't know that it should treat those projects as FX.
I see the id="jfx3" in <extension file="jfx-impl.xml" id="jfx3"> Question: Should this be "jfx3", or (now aligned) "jfx8" ?
(In reply to Lou Dasaro from comment #2) > I see the id="jfx3" in > <extension file="jfx-impl.xml" id="jfx3"> > > Question: Should this be "jfx3", or (now aligned) "jfx8" ? jfx3 is correct for now (NetBeans 7.4 and 8.0). It's just internal NetBeans identification. But if you look in project.xml of any of those three Java FX 8.0 samples, you won't find this information about extensions. Also note that those projects don't contain jfx-impl.xml (and it can't be automatically created during project opening, because of missing information that project should be FX project).
Roman, thank you for your comments. One more question to you. What should prevent JavaFX app from working as Java SE project? We had no problems with samples as Java SE projects with previous NetBeans versions. Maintaining correct JavaFX project version was troublesome and as long as FX became a part of JDK we moved to Java SE projects.
BTW, what are the benefits of JavaFX projects vs. Java SE projects?
Java SE projects do not activate Java FX support modules. See the end of comment #3 The previous JavaFX samples were not SE projects, they were JavaFX projects. I am still waiting for resolution of https://javafx-jira.kenai.com/browse/RT-33065 However, that defect maps to Bug 236120 . Ensemble8 does not build on ANY version of NetBeans. Again, see comment #3
Changed to wontfix from invalid, because it's not an invalid bug - it's just not a NetBeans bug. This is consistent with the way Bug 236120 was resolved.
I changed status to FIXED because the bug at https://javafx-jira.kenai.com/browse/RT-35004 has been fixed. I am now able to build and run the JavaFX samples located at: https://jdk8.java.net/download.html and specifically: http://download.java.net/jdk8u20/archive/b23/binaries/javafx_samples-8u20-ea-b23-windows-15_jul_2014.zip using NetBeans 8.0 and: Product Version: NetBeans IDE Dev (Build 201407280405) Java: 1.8.0_20-ea; Java HotSpot(TM) Client VM 25.20-b21 Runtime: Java(TM) SE Runtime Environment 1.8.0_20-ea-b22 System: Windows 8.1 version 6.2 running on x86; Cp1252; en_US (nb)