JDK-6437043 : JRE installer does not set Windows PATH variable on 64-bit
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-06-10
  • Updated: 2010-04-04
  • Resolved: 2006-06-13
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 5.2.3790]

A DESCRIPTION OF THE PROBLEM :
Installer of JRE for Windows XP Professional x64 Edition (64 bit  Windows) does not set the PATH environment variable or do equivalent operqation so that for example java.exe would be accessible from command line. In JRE's for 32 bit Windows version perform this correctly.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install JRE to Windows XP Professional x64 Edition.
The installer of JRE does not set the PATH environment variable or do other operation correctly so that for example java.exe would be accessible from command line.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
That after starting cmd I could type java and it would be accessible trhough path environment variable, for example:
C:\>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode)
ACTUAL -
C:\>java
'java' is not recognized as an internal or external command,
operable program or batch file.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
C:\>java
'java' is not recognized as an internal or external command,
operable program or batch file.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Set the PATH environment variable manually: Start > Control Panel > System > Advanced > Environment Variables > User Variables for xxx > path
or
Start > Control Panel > System > Advanced > Environment Variables > System Variables > Path

Comments
EVALUATION We have limited support for amd64 in Tiger, so we do not copy the java.exe to the system directory like the 32-bit install does. This will likely be fixed in a future release. Marking as a duplicate of the complete 64-bit port effort.
13-06-2006