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 229705

Summary: Auto-update platform related project properties on project open
Product: javafx Reporter: Petr Somol <psomol>
Component: ProjectAssignee: Petr Somol <psomol>
Status: RESOLVED FIXED    
Severity: normal CC: mrkam, tzezula
Priority: P2    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
See Also: https://netbeans.org/bugzilla/show_bug.cgi?id=236120
Issue Type: TASK Exception Reporter:
Bug Depends on: 229678    
Bug Blocks: 230327    

Description Petr Somol 2013-05-14 09:36:37 UTC
In NetBeans 7.4 the FX-enabled platforms have been removed, while standard Java Platforms can now be used in FX Applications instead (because JavaFX RT is distributed as part of JDK since JDK 7u6). This change requires an auto-update mechanism to be employed when opening especially older projects in NetBeans 7.4.

Now when an old project is opened with platform set to Default_JavaFX_Platform, its platform is automatically changed to the default Java Platform. The respective classpath extension properties (in particular javac.classpath) are updated as well to keep the required FX RT artifacts on classpath if needed (although JavaFX RT is distributed together with JDK since 7u6, it is not always on classpath by default, what calls for the above workaround on NetBeans side). The respective project properties are updated also whenever user changes project platform from the UI.

The FX RT platform auto-update mechanism is now available also to SE projects for users who use FX classes in Swing and used to add jfxrt.jar dependence manually. Instead, in SE project it is now better to check "Keep JavaFX RT on classpat" checkbox in Deployment category in SE Project Properties. This keeps the correct RT version on classpath even when platform is later changed.