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 230016 - Unable to setup JavaFx 8 platform in Netbeans 7.3
Summary: Unable to setup JavaFx 8 platform in Netbeans 7.3
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Platform (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Petr Somol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-21 04:48 UTC by neil15
Modified: 2013-05-21 11:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error while setting JavaFx 8 runtime (31.26 KB, image/png)
2013-05-21 04:48 UTC, neil15
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neil15 2013-05-21 04:48:29 UTC
Created attachment 134658 [details]
Error while setting JavaFx 8 runtime

I am using JDK 8 Early access (Build 90) with Netbeans 7.3 in windows but while enabling JavaFx in Java platform it says JavaFx platform is not correctly defined. I tried to give the jre8 path but still the error continues. The error is not shown when I set the JavaFx runtime to JRE 1.7 but in that case my JavaFx code is compiled by JDK8 but it tried to run using JRE7 ending up with incomparable class version error .

Note that I need to use JDK 8 for my experimental project which needs some latest features , so moving back to JDK 7 is not an option. Also Running the jar separately in command line every time I compile using netbeans will take a lot of time reducing productivity.
Comment 1 Petr Somol 2013-05-21 11:26:17 UTC
This is not a bug but missing support, in line with NetBeans versioning plans. To summarize, the official support of JDK8 (and thus of JavaFX8) is as follows:

NetBeans 7.3 - no official JDK8 support
NetBeans 7.4 - preview JDK8 support (because JDK8 will not be out yet when 7.4 comes out, but generally things should work already)
NetBeans post-7.4 - full JDK8 support

The technical reason for the JavaFX8 problem in 7.3 is the change in sub-directory structure in JDK8. To accomodate this change in NetBeans we had to change platform detection routines as well as FX project build scripts. This is done in NetBeans 7.4, so the recommendation for you is to use the NetBeans 7.4 daily builds with JDK8.

Note however that in NetBeans 7.4 a more substantial change is made - there is no explicit UI for JavaFX support in Java Platforms (in fact not even the Default JavaFX Platform is maintained any more). In 7.4 the FX support is by default available in any JDK that includes JavaFX runtime. See Issue #229678 for more info.