[2.0.5] Win11: Env.getOSVersion() gets incorrect version (10.0) --- Java/Windows problem (fixed with Java18??) - temp-fix in 2.0.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
tracked on GitHub: https:/
-------
looks like there is an open bug for windows 11
that is expected to be fixed in java 18
https:/
IMHO this is not really a Java bug, but a quirk in Windows 11
systeminfo shows this (language German):
Betriebssystemname: Microsoft Windows 11 Pro
Betriebssystemv
So the version is actually shown as 10.0 which is reported by Java
-------
--- workaround ---
(based on Chetan's idea from comment #7)
windowsVersion = run("systeminfo
print windowsVersion
will show on Win11: Microsoft Windows 11 Pro
(tested on Win11 and on Win10)
-------
Env.getOSVersion() gets incorrect version for Windows 11
we are expecting version to be returned as 11 but get 10.0
OS: Win 11
Java : 14
description: | updated |
Changed in sikuli: | |
status: | Opinion → Confirmed |
description: | updated |
summary: |
[2.0.5] Win11: Env.getOSVersion() gets incorrect version (10.0) --- - Java/Windows problem (fixed with Java18??) + Java/Windows problem (fixed with Java18??) - temp-fix in 2.0.6 |
Changed in sikuli: | |
status: | Confirmed → Fix Committed |
importance: | Medium → Critical |
Since I am still not able to test a Win11 system (update not yet available), I cannot test it.
But internally simply the Java SystemProperty os.version is reported.
So you might check this value on your system.
Looks like a Java problem.