JDK-8066656 : System.getProperty( " os.name " ) returns " Windows NT (unknown) " on Windows 10
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7u71,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86
  • Submitted: 2014-12-03
  • Updated: 2015-06-25
  • Resolved: 2015-06-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_majorResolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
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 ----------


Comments
windows 10 is still in development. I would imagine we'll have this fixed before windows 10 releases.
04-12-2014

Reported against Windows 10. Need to be tested.
04-12-2014