(January 21, 2015 at 5:20 pm)Tonus Wrote:(January 21, 2015 at 4:55 pm)Davka Wrote: I like the way they simply skipped over Win9. Like they're trying to get some distance between Microsoft and Win8.
The actual reason appears to be related to Windows 95/98. Many old applications would check for the Windows version by reading "Windows 9" and not bothering to check the next digit. That could present some very... interesting issues if anyone attempted to install one of those old programs on Windows 9, so MS decided that as unlikely as it was, it was better to just avoid it altogether.
There's some truth to it.
IIRC (I do Unix software dev, not Windows), the native windows API to retrieve the OS version returns the version as an ordinal, not a string.
However, if you get the OS name/version in java, it comes from the system properties as a string (as seen in the link above).
1. Don't do that.
2. You don't need to do that. If you think you do, you're almost certainly wrong.