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

deployJava.js installs 1.6 when asked for 1.7 on clean machine

    Details

    • Subcomponent:
    • Resolved In Build:
      b18
    • CPU:
      x86
    • OS:
      windows_7
    • Verification:
      Verified

      Backports

        Description

        FULL PRODUCT VERSION :


        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.1.7601]

        A DESCRIPTION OF THE PROBLEM :
        If there is no version of Java on machine when a html page is loaded in Firefox or IE with the following script:
        <script>
            deployJava.setInstallerType("kernel");
            deployJava.createWebStartLaunchButton("swing/etfLocalWin.jnlp", '1.7.0');
        </script>

        When the Launch button is clicked, jre-6u29-windows-i586-iftw-k.exe is downloaded and run.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Make sure no Java of any kind. Paste this to an html file on the desktop & double click. Then click Launch.

        <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        </head>
        <body>
        Launch me!!!
        <script src="http://www.java.com/js/deployJava.js"></script>
        <script>
        deployJava.setInstallerType("kernel");
        deployJava.createWebStartLaunchButton("yourAppHere.jnlp", '1.7.0');
        </script>
        </body>
        </html>

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Java 1.7 JRE installed

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        </head>
        <body>
        Launch me!!!
        <script src="http://www.java.com/js/deployJava.js"></script>
        <script>
        deployJava.setInstallerType("kernel");
        deployJava.createWebStartLaunchButton("yourAppHere.jnlp", '1.7.0');
        </script>
        </body>
        </html>
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Have the customer go around twice. Once there is a Java on the machine the process is different and you get 1.7 the second time. You can imagine how hard the customer may have to swallow to actually do this though.

        This is a new product launch occurring soon. Wanted to get the client base on 1.7 right from the start, except for MacOS.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  herrick Andy Herrick
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: