JDK-7115058 : JRE 1.7.0 Update 1 incorrect RuntimeLib registry entry
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2011-11-23
  • Updated: 2012-09-06
  • Resolved: 2011-11-23
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Windows 7 x64 SP1

A DESCRIPTION OF THE PROBLEM :
When you install the jre-7u1-windows-x64.exe it sets incorrectly this registry's entry:

HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7.0_01\RuntimeLib

because it set it to

C:\Program Files\Java\jre7\bin\client\jvm.dll

but the "client" directory does not exist. The only jvm.dll is present at

C:\Program Files\Java\jre7\bin\server\jvm.dll



STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Execute and install jre-7u1-windows-x64.exe.
2. Open the Window's regedit tool.
3. Find the HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7.0_01\RuntimeLib key's value ( C:\Program Files\Java\jre7\bin\client\jvm.dll by default ).
4. Go to C:\Program Files\Java\jre7\bin\client\jvm.dll and test yourself that path does not exist.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The registry's entry HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7.0_01\RuntimeLib should have a value of
C:\Program Files\Java\jre7\bin\server\jvm.dll
ACTUAL -
The registry's entry HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7.0_01\RuntimeLib contains a value of
C:\Program Files\Java\jre7\bin\client\jvm.dll, which actually is incorrect because that path does not exist.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Although this error does not produce any direct output error it may produce some errors in case some app tries to find the JRE's location, making the JRE 1.7.0u1 unusable.

REPRODUCIBILITY :
This bug can be reproduced always.