I have following problem:
I want to get the OS name via System.getProperty("os.name")
and System.getProperty("os.version")
on a Windows Vista machine.
I have checked the compatibility mode settings of the java executables.
Java reports following:
C:\Program Files\Java\jre6\bin\java.exe - no compatibility mode --> Windows Vista / 6.0 (OK)
C:\Program Files\Java\jre6\bin\java.exe - compatibility mode "Windows XP" --> Windows XP / 5.1 (OK)
C:\Program Files\Java\jre6\bin\javaw.exe - no compatibility mode --> Windows XP / 5.1 (WRONG)
C:\Program Files\Java\jre6\bin\javaw.exe - compatibility mode "Windows XP" --> Windows XP / 5.1 (OK)
i'm using java 1.6.0_34 (x86) on a 32 bit vista.
does anybody know what the reason for this could be?