Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8066656

System.getProperty( " os.name " ) returns " Windows NT (unknown) " on Windows 10

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P4
    • tbd
    • 7u71, 9
    • core-libs
    • x86
    • windows_10

    Description

      FULL PRODUCT VERSION :
      java version "1.7.0_71"
      Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
      Java HotSpot(TM) Client VM (build 24.71-b01, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft WIndows [ Version 6.4.9879]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Windows 10 Technical Preview (Build 9879), 64-bit

      A DESCRIPTION OF THE PROBLEM :
      System.getProperty( " os.name " ) returns " Windows NT (unknown) " on Windows 10

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Following code should return valid OS name for Windows 10

      public class HelloWorld {
           public static void main(String args[]) {
              System.out.println(System.getProperty( " os.name " ));
           }
      }

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Valid OS name
      ACTUAL -
      " Windows NT (unknown) "

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class HelloWorld {
           public static void main(String args[]) {
              System.out.println(System.getProperty( " os.name " ));
           }
      }
      ---------- END SOURCE ----------

      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: