• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Why does java.exe in \Windows\System32 change its version number?

 
Bartender
Posts: 1464
32
Netbeans IDE C++ Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am running 64-bit Windows 7. In my \Windows\System32 directory there is a java.exe with a created/modified date of July 3, 2014. Its size is 190,888 bytes. When I examine its properties, Windows tells me that this is "Product version 8.0.05.13."

Earlier today, I installed the 64-bit JDK1.8.0_31 in \Program Files\Java\JDK1.8.0_31. In its .\bin subdirectory, there is a java.exe. Its created/modified date is January 27, 2015. Its size is 190,856 bytes. When I examine its properties, Windows tells me that this is "Product version 8.0.31.13."

In a command window, when I explictly execute either (by entering "C:\windows\system32\java -version" or "C:\program files\java\jdk1.8.0_31\bin\java -version"), both give me identical output. They both say



I would expect the older version in \Windows\System32 to say it is version 1.8.0_5. Can anyone help me understand why that's not what it's saying?
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The java executable gets installed into the Windows directory at initial installation.
THe java updater however does NOT update that file.

Apparently there is some magic that makes windows looks in the registry and determines which version of java to ACTUALLY run, despite you explicitly running the version in the windows System directory.
It works that out based on the last version installed.
Well. this guy seems to think so anyway.
 
Stevens Miller
Bartender
Posts: 1464
32
Netbeans IDE C++ Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stefan Evans wrote:Apparently there is some magic that makes windows looks in the registry and determines which version of java to ACTUALLY run, despite you explicitly running the version in the windows System directory.



Oh.

Good.
 
Stevens Miller
Bartender
Posts: 1464
32
Netbeans IDE C++ Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please add the following to my previous reply:

God.
reply
    Bookmark Topic Watch Topic
  • New Topic