JDK-6388878 : "java -version" is unavailable after JDK installation on windows amd64 platforms
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 1.4.2_11
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-02-22
  • Updated: 2010-04-02
  • Resolved: 2006-02-22
Related Reports
Duplicate :  
Description
After installation of 32-bit or 64-bit jdk at 64-bit windows (windows xp and windows 2003 SE tried) on amd64 system calling 

java -version

does not give you a result - it says 

'java' is not recognized as an internal or external command, operable program or batch file.

This is unlike the behaviour after jdk installation on other platforms which breaks similarity of usage of "java -version" during tests. I guess the reason is that we use 32-bit registry access API to store information about jdk installed. On 64-bit windows it gets placed to some compatibility area (Wow6432Node). After we call "java -version" this information is not found. So I suggest that we either look at two places in the registry or use 64-bit API to store the information.