United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7148914 Need to be able to detect true cobundle from mimetype
JDK-7148914 : Need to be able to detect true cobundle from mimetype

Details
Type:
Enhancement
Submit Date:
2012-02-26
Status:
Resolved
Updated Date:
2012-04-21
Project Name:
JDK
Resolved Date:
2012-04-21
Component:
deploy
OS:
generic
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:
8

Related Reports
Backport:
Relates:
Relates:
Relates:

Sub Tasks

Description
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
  application/x-java-applet;javafx=2.1.0

We also need an easy way to detect version of deployment stack, e.g. using 
  application/x-java-applet;deploy=10.0.0

                                    

Comments
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.
                                     
2012-04-14



Hardware and Software, Engineered to Work Together