Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6537987

improve javaws.exe native parser to handle <java> element

XMLWordPrintable

    • b02
    • generic, x86
    • generic, windows_xp
    • Not verified

        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.

              herrick Andy Herrick (Inactive)
              ngthomas Thomas Ng (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: