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

JRE for JDK not installed if a non-default installation directory is selected

XMLWordPrintable

    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_74"
      Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
      Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Win7 x64 [Version 6.1.7601]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      32 GB RAM, Intel Core i7-491 2.9GHz

      A DESCRIPTION OF THE PROBLEM :
      Installation of JDK 1.8.0_74 to an alternate location (i.e. something without spaces, such as C:\Programs\JDK\8). Installation of JRE is selected. In previous releases, that directory appeared at C:\Programs\JDK\8\jre. In release 74, that directory is missing. If I re-install to the default locations, I now have C:\Program Files\Java\jdk1.8.0_74 and C:\Program Files\Java\jre1.8.0_74.

      In the past, I have installed the JDK JRE, saved a copy during the installation, installed the JRE in the same directory, then moved the missing files back to the JRE installation directory. Specifically, I need attach.dll and related files in the JDK, for debugging.

      I *hate* installations with a space in the path name. Too many unexpected issues, especially when writing scripts.

      I saw the same results in two separate JDK installations.

      Additional enhancement suggestion: *remember* the installation location and use that same location when installing/updating a new patch level. It always reverts to the default installation location. Or- use %JAVA_HOME% environment variable, which pretty much every useful Java program requires to be set.

      REGRESSION. Last worked in version 8u72

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_74"
      Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
      Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

      Sorry, I installed the new java version into the old java version directory. There were no patches installed on top of v74.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Install JDK 1.8.0_74 x64 on Windows. Make sure the JDK installation option is selected. Install to C:\Programs\JDK\8. After installation, before the JRE installation, validate that C:\Programs\JDK\8\jre is missing. C:\Program Files\Java\jdk1.8.0_74 is empty.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      JDK JRE is installed to C:\Programs\JDK\8\jre, not missing.
      ACTUAL -
      JDK JRE in C:\Programs\JDK\8\jre is missing. Files needed for JDK debugging are missing, making debugging impossible without re-installation.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No crash. attach.dll and related files are missing. Eclipse.exe says: "Cannot debug. attach.dll is missing. Are you using a JRE instead of a JDK?".

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      No test case. Installation only.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Install JDK and JRE to the default locations. Copy the missing files to your original %JAVA_HOME% directory.

            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: