JDK-6490567 : nested resources element inside j2se element does not work correctly in Java Web Start 5.0 and 1.4.2
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 1.4.2
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2006-11-06
  • Updated: 2014-02-27
  • Resolved: 2006-11-08
Related Reports
Duplicate :  
Description
this problem exists in 1.4.2 and 5.0 only; 6.0 okay

A jnlp can contains multiple j2se element, to specify a prioritized listed of supported JREs, with the most preferred version first, e.g:

  <resources>
     <j2se version="1.5+">
        <resources>
           <jar href="draw.jar.pack.gz" main="true"/>
        </resources>
     </j2se>

     <j2se version="1.4*">
        <resources>
           <jar href="draw.jar" main="true"/>
        </resources>
     </j2se>
  </resources>

If the j2se version is selected by java web start, the resources included should be downloaded; otherwise, the resources should be ignored.

e.g  starting the above jnlp file with 5.0 or 6.0, only draw.jar.pack.gz will be downloaded.

However, if you start the above jnlp file with 1.4.2_13, draw.jar.pack.gz will be downloaded and the application cannot start, which is not correct.  It should only download draw.jar instead to start the application.


5.0 also has similar problem:

 <resources>
     <j2se version="1.6+">
        <resources>
           <jar href="draw.jar.pack.gz" main="true"/>
        </resources>
     </j2se>

     <j2se version="1.5*">
        <resources>
           <jar href="draw.jar" main="true"/>
        </resources>
     </j2se>
  </resources>

In this case, draw.jar.pack.gz will be used instead, which is incorrect.