-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
8, 9
-
generic
-
windows
A DESCRIPTION OF THE REQUEST :
FULL PRODUCT VERSION :
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) Client VM (build 25.77-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
OS Name: Microsoft Windows Server 2016
OS Version: 10.0.14300 N/A Build 14300
A DESCRIPTION OF THE PROBLEM :
When I execute a System.getProperty("os.name"), it returns "Windows NT (unknown)" and System..getProperty("os.version"), "10.0" is returned. My OS is Windows server 2016, so System.getPropery("os.name") should return "Windows server 2016". This is not really a bug, but need to be fixed.
JUSTIFICATION :
Below java api calls are not giving Windows server 2016 OS details.
This OS support needs to added to show proper OS details.
System.getProperty("os.name");
System.getProperty("os.version");
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
My OS is Windows server 2016, So System.getPropery("os.name") should return "Windows server 2016".
ACTUAL -
When I execute a System.getProperty("os.name"), it returns "Windows NT (unknown)" and System.getProperty("os.version"), "10.0" is returned.
---------- BEGIN SOURCE ----------
public class Test
{
public static void main(String ... args)
{
System.out.println(System.getProperty("os.name"));
System.out.println(System.getProperty("os.version"));
}
}
---------- END SOURCE ----------
FULL PRODUCT VERSION :
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) Client VM (build 25.77-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
OS Name: Microsoft Windows Server 2016
OS Version: 10.0.14300 N/A Build 14300
A DESCRIPTION OF THE PROBLEM :
When I execute a System.getProperty("os.name"), it returns "Windows NT (unknown)" and System..getProperty("os.version"), "10.0" is returned. My OS is Windows server 2016, so System.getPropery("os.name") should return "Windows server 2016". This is not really a bug, but need to be fixed.
JUSTIFICATION :
Below java api calls are not giving Windows server 2016 OS details.
This OS support needs to added to show proper OS details.
System.getProperty("os.name");
System.getProperty("os.version");
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
My OS is Windows server 2016, So System.getPropery("os.name") should return "Windows server 2016".
ACTUAL -
When I execute a System.getProperty("os.name"), it returns "Windows NT (unknown)" and System.getProperty("os.version"), "10.0" is returned.
---------- BEGIN SOURCE ----------
public class Test
{
public static void main(String ... args)
{
System.out.println(System.getProperty("os.name"));
System.out.println(System.getProperty("os.version"));
}
}
---------- END SOURCE ----------
- duplicates
-
JDK-8150490 Update OS detection code to recognize Windows Server 2016
-
- Resolved
-