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 239586 - [80cat] Sample JavaFX 8 projects from Oracle wont build on NB 8.0
Summary: [80cat] Sample JavaFX 8 projects from Oracle wont build on NB 8.0
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC All
: P2 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-18 04:51 UTC by Lou Dasaro
Modified: 2014-08-05 05:29 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lou Dasaro 2013-12-18 04:51:51 UTC
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
Comment 1 Roman Svitanic 2013-12-19 10:17:35 UTC
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.
Comment 2 Lou Dasaro 2013-12-19 16:00:58 UTC
I see the id="jfx3" in
<extension file="jfx-impl.xml" id="jfx3">

Question: Should this be "jfx3", or (now aligned) "jfx8" ?
Comment 3 Roman Svitanic 2013-12-19 16:08:51 UTC
(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).
Comment 4 Alexander Kouznetsov 2013-12-25 00:34:46 UTC
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.
Comment 5 Alexander Kouznetsov 2013-12-25 00:38:33 UTC
BTW, what are the benefits of JavaFX projects vs. Java SE projects?
Comment 6 Lou Dasaro 2013-12-25 01:56:23 UTC
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
Comment 7 Lou Dasaro 2014-01-05 10:25:17 UTC
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.
Comment 8 Lou Dasaro 2014-07-29 20:50:11 UTC
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)