United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6537987 improve javaws.exe native parser to handle <java> element
JDK-6537987 : improve javaws.exe native parser to handle element

Details
Type:
Bug
Submit Date:
2007-03-23
Status:
Closed
Updated Date:
2010-09-24
Project Name:
JDK
Resolved Date:
2009-05-13
Component:
deploy
OS:
generic,windows_xp
Sub-Component:
webstart
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
6u14 (b02)

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
our native xml parser do not reconize the new "java" tag; it only support "j2se" tag.  So we will always relaunch if jnlp uses java tag with a old jre.

See launchFile.c, function ParseXMLLaunchFile.
we should make our native javaws.exe xml parser works the same as the java parser.  there might be limitations, but we should make them as close as possible.

another issue with the current native parser is it won't pares the jnlp file unless the encoding specified is utf-8.  we should investigate if we can improve on that, to reduce the chance of re-launching on jnlp files that is not utf-8.
another problem with native parser - we cannot handle mutliple resources tag:

 <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
 </resources>
 <resources>
     <jar href="SingleInstanceDemo.jar" main="true"/>
     <jar href="AppFramework.jar" />
     <jar href="swing-worker.jar" />
  </resources>

This jnlp file will not be parsed by the javaws.exe parser.

                                    

Comments
EVALUATION

add "java" element support to native parser
                                     
2007-03-23



Hardware and Software, Engineered to Work Together