JDK-8017496 : Mechanism to identify application
  • Type: Enhancement
  • Component: other-libs
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2013-06-24
  • Updated: 2016-02-11
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.

To download the current JDK release, click here.
Other
tbd_majorUnresolved
Related Reports
Relates :  
Description
I am interested in a mechanism in Java SE that would allow library code to identify the running application. Such a mechanism could take a form of a static method like

    java.lang.System.getApplicationName()

returning the fully qualified name of the application's main class. The mechanism would be expected to work in all deployment modes: standalone, applet, webstart.

This is currently needed by JavaFX WebView, see https://javafx-jira.kenai.com/browse/RT-29584, and so does not have to be public API at least initially.
Comments
Note that a similar RFE has been filed against JavaFX: https://javafx-jira.kenai.com/browse/RT-31249 .
24-06-2013