Unable to detect correct name of OS
Hi, I my application i need to detect os therefore, i tried to get os name in java through following statement: System.getProperty("os.name"); but i am getting wrong name "windows vista". Instead it should give Windows 7. Please help!!
December 9th, 2009 8:26am

Hi, Do not know if you have installed the latest version of Java SDK, this is a known bug and was fixed since 1.4.2_21. System.getProperty("os.name") reports Vista on Windows 7http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6819886 In previous version, the os.name system property still returns Windows Vista. The version number is set to 6.1 however, so you can check for that and windows vista together to determine if it is windows 7.
Free Windows Admin Tool Kit Click here and download it now
December 9th, 2009 12:17pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics