JDK-6717435 : amd64 bit jre installer delete 32 bit java.exe from SysWOW64 directory
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-06-20
  • Updated: 2010-09-17
  • Resolved: 2008-09-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u10 b31Fixed 7Fixed
Related Reports
Relates :  
Description
How to reproduce.

1.) Install 6u10 32 bit JRE from pit b27 

2.) open 32 bit command prompt via C:\WINDOWS\SysWOW64

3.) Check java version 
C:\WINDOWS\SysWOW64>.\java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b427)
Java HotSpot(TM) Client VM (build 11.0-b11, mixed mode, sharing)

C:\WINDOWS\SysWOW64>ls -al java.exe
-rwxrwxrwa   1 Administrators  SYSTEM           139264 Jun 20 23:41 java.exe

4.) Now, install amd64 bit JRE from pit b27

5.) Check java version 
 C:\WINDOWS\SysWOW64>.\java -version
'.\java' is not recognized as an internal or external command,
operable program or batch file.

C:\WINDOWS\SysWOW64>ls -al java.exe
ls: File or directory "java.exe" is not found

6.) Check java version on 64 bit command prompt. This is working fine.
C:\WINDOWS\system32>.\java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b427)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b13, mixed mode)

Expected Behavior:
64 bit and 32 bit JRE should not touch each othere system's directory.

Actual Behavior:
64 bit JRE is removing 32 bit java.exe from C:\WINDOWS\SysWOW64 diretory.

Comments
EVALUATION The problem is that the 64-bit MSI is removing files from the 32-bit system directory. We have entries in the RemoveFile table to remove java.exe from "SystemFolder", when it should be from "System64Folder". The fix is to make sure the 64 gets in there when we copy the RemoveFile table for 64-bit. Other files that I suspect are getting deleted are javaw.exe and javaws.exe.
21-08-2008