Create and build JavaFX project with JavaFX 2.1 SDK.
Look into its dist/*.jnlp and *.html files. Both state the app requires JavaFX version 2.0+. This is not correct as application was developed with JavaFX 2.1 and may not work with older runtime versions.
Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.7.0_02; Java HotSpot(TM) 64-Bit Server VM 22.0-b10
System: Windows 7 version 6.1 running on amd64; Cp1251; en_US (nb)
User directory: C:\Users\akouznet\.netbeans\7.1
Cache directory: C:\Users\akouznet\.netbeans\7.1\var\cache
Created attachment 119362 [details]
Generated jnlp file
Created attachment 119363 [details]
Generated html file
In JavaFX Application project type the jnlp and html artifacts are generated using an Ant task from FX SDK. Thus NetBeans does not control the contents of these files. I confirm the same problem persists in JavaFX 2.2 b08. I have filed an issue on this in JavaFX Jira server:
As nothing more can be done about that in NetBeans I am closing as Wontfix. Please follow the above link regarding this issue's further processing.
Igor of FX team has discovered that the problem actually has been in the NB side - it was in the jfx-impl.xml buildfile, a leftover platform version setter from the times of FX 2.0.x.
fixed in jetmain:
Integrated into 'main-golden', will be available in build *201205180400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Petr Somol <firstname.lastname@example.org>
Log: #212399 - Incorrect JavaFX version is set in html and jnlp files for JavaFX project