JDK-7148914 : Need to be able to detect true cobundle from mimetype
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-02-26
  • Updated: 2012-04-21
  • Resolved: 2012-04-21
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.
7u6Fixed 8 b36Fixed
Related Reports
Relates :  
Relates :  
Relates :  
On Windows platform we currently rely on DT native plugin to detect presence of JavaFX Runtime.
On Mac and Unix there are no native DT plugins and JavaFX runtime is always part of JRE bundle.
Also, all Mac/Unix browsers are NPAPI based

Convinient way to detect presence of JavaFX will be to report it in the mime tabl, like

We also need an easy way to detect version of deployment stack, e.g. using 

EVALUATION - NPAPI plugin on Mac and Unix now report following additional mime types: a) application/x-java-applet;deploy=10.0.0 Version of deploy stack. Needed to be able to detect presence of new "DTLite" apis without loading native DT plugin (and java plugin two) b) application/x-java-applet;javafx=2.1.0 Version of embedded JavaFX Runtime. Only added if JavaFX is cobundled (on Mac determine at bundle build time, on unix we detect it in runtime) - Mimetypes in the Info.plist are now populated dynamically at the build time We still export fewer mime types than NPAPI plugin on Unix. Will need to look into this separately - Refactored part JavaVM.c as i needed method to find location of javafx.properties file (file contains javafx version, i added support for it on JavaFX side yesterday) FORCED* keys should not work better on these platforms. E.g. FORCED_JRE_ROOT did not seem to be working - I did not add these mime types on windows yet. JavaFX one does not make much sense yet as we do not have true cobundle. Listed these 2 keys as part of work to be done in 7148913. If i can find time to play with it tomorrow then i may try to add them too.