JDK-7159266 : [macosx] ApplicationDelegate should not be set in the headless mode
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
The following Java FX bug describes the issue:
In a nutshell, starting from JDK 7u4 b16, a Java FX app on the Mac will hang if it's started with the software J2D rendering pipeline.
This is a regression of 7132692.
To fix this issue we should not set an ApplicationDelegate when AWT is started in the headless mode. The ApplicationDleegate provides an implementation for com.apple.eawt API. All the features of the API (e.g. assiging an action for a system menu item Preferences in the Mac menu bar, etc.) don't make any sense in the headless mode anyway.