This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Where does System.getProperty( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Where does System.getProperty("os.version") get its value in Win XP?" Watch "Where does System.getProperty("os.version") get its value in Win XP?" New topic
Author

Where does System.getProperty("os.version") get its value in Win XP?

Bill Parsh
Greenhorn

Joined: Nov 20, 2008
Posts: 9
A computer I am working on has a newish install of Windows XP SP 3 on it. It wasn't upgraded from an older OS. Single boot. System Properties, Dxdiag, and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion all show OS version 5.1, but System.getProperty("os.version") returns 4.0. Other Win XP machines I have tested System.getProperty("os.version") return 5.1. Other third party software also recognize the wrong OS on this machine.

Could someone please tell me where exactly the System.getProperty("os.version") 4.0 value might be coming from on this particular machine?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Where does System.getProperty("os.version") get its value in Win XP?
 
jQuery in Action, 3rd edition