Windows 10 issues with Java system properties RRS feed

  • Question

  • There seems to be an issue with Windows 10 and the properties that it registers with the JVM when running. The specific issue:

    String osName = System.getProperty("os.name");

    On my computer, which just recently got upgraded to Windows 10 from Windows 7, this line of code returns "Windows 8.1". The issue being I have never had Windows 8.1.

    This leads me to believe that there is an issue when creating Windows 10 that the legacy code (If any) from Windows 8.1 still retained the property of "os.name" to be Windows 8.1. Is this right? Or is it something different, like a Java compatibility problem? (This is for an installer, and I need to install it differently for different systems and platforms. So its an issue)

    Thursday, August 6, 2015 5:51 PM