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

Silent installation of JDK with public JRE no longer works

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 9
    • 8u45, 9
    • install
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      Tested on jdk-8u45-windows-i586 and jdk-8u45-windows-x64 install packages

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      I used to install JDK and JRE silently from JDK installation exe in one easy step, this no longer works.

      I need the option to specify custom installation directory for JDK and JRE (dont want program files as target) so the commands was:

      %1 /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature" /INSTALLDIR="%INSTALL_PATH%\jdk8_64" /INSTALLDIRPUBJRE=%INSTALL_PATH%\jre8_x64 /L "JAVA_64_JDK8_JRE_INSTALL.log"
      %2 /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature" /INSTALLDIR="%INSTALL_PATH%\jdk8" /INSTALLDIRPUBJRE=%INSTALL_PATH%\jre8 /L "JAVA_JDK_JRE8_INSTALL.log"

      where %1 was JDK install executable for 64bit version and %2 was JDK install executable for 32bit version and %INSTALL_PATH% was installation directory.

      I dont know when this stopped to work but this is not working anymore. I googled and tried many obscure (extracting MSI from exe etc) ways but didn't find any easy way to do this.

      I did some experiments and I think the problem lies in INSTALLDIR option - it seems that it is no longer recognized as installer option and when it is present, the installation doesn't work at all.

      I know that INSTALLDIR is not present in doc https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_jdk_install.html#CHDEBCCJ but it did work in the past and I dont understand why it was removed, I think the installation dir is the thing many people would want to change.



      REGRESSION. Last worked in version 8u31

      ADDITIONAL REGRESSION INFORMATION:
      Im not sure what was the last version where it worked.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Use this command to install the JDK and nothing will happen and nothing will be written to log:

      jdk-8u45-windows-x64.exe /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature" /INSTALLDIR="c:\development\jdk8_64" /INSTALLDIRPUBJRE=c:\development\jre8_x64 /L "JAVA_64_JDK8_JRE_INSTALL.log"

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Install the JDK and JRE silently to custom directories.
      ACTUAL -
      Nothing is installed at all.

      REPRODUCIBILITY :
      This bug can be reproduced always.

            ynovozhi Yulia Novozhilova (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: