Output :
jshell> System.getProperty("os.name")
$1 ==> "Windows 10"
jshell> System.getProperty("java.version")
$2 ==> "18-ea"
cmd > systeminfo
Host Name: ---
OS Name: Microsoft Windows 11 Pro
Java should recognise Windows 11.
Windows 11 release : https://www.microsoft.com/en-in/windows/windows-11-specifications
jshell> System.getProperty("os.name")
$1 ==> "Windows 10"
jshell> System.getProperty("java.version")
$2 ==> "18-ea"
cmd > systeminfo
Host Name: ---
OS Name: Microsoft Windows 11 Pro
Java should recognise Windows 11.
Windows 11 release : https://www.microsoft.com/en-in/windows/windows-11-specifications
- duplicates
-
JDK-8274840 Update OS detection code to recognize Windows 11
-
- Resolved
-
- relates to
-
JDK-8274840 Update OS detection code to recognize Windows 11
-
- Resolved
-