From: ilya on 3 May 2010 02:47 I use the method System.getProperty("os.name") to get the name of operation system. For the most computers it works fine. But on some computers it is installed windows 7, but this method shows that the operation system is windows vista. What can be the reason?
From: Mike Schilling on 3 May 2010 03:07 ilya wrote: > I use the method System.getProperty("os.name") to get the name of > operation system. For the most computers it works fine. But on some > computers it is installed windows 7, but this method shows that the > operation system is windows vista. What can be the reason? Most likely that that version of Java doesn't know about Windows 7, so it interprets any version number higher than XP's as Vista.
From: ilya on 3 May 2010 03:24 Ok. thank you. I found out that it is necessary to update the JDK.
From: Peyman on 3 May 2010 06:02 i'm not sure but i think that win7 may not be the Released version of Win7. it may be a Beta or RC version
From: Lew on 3 May 2010 12:15 ilya wrote: >> I use the method System.getProperty("os.name") to get the name of >> operation system. For the most computers it works fine. But on some >> computers it is installed windows 7, but this method shows that the >> operation system is windows vista. What can be the reason? > Could it be that the JVM simply asks the OS what it is, and that is what Windows tells it? Mike Schilling wrote: > Most likely that that version of Java doesn't know about Windows 7, so it > interprets any version number higher than XP's as Vista. > Are you claiming that the JVM hard-codes its knowledge of OSes rather than querying the OS itself? -- Lew
|
Next
|
Last
Pages: 1 2 Prev: Incremental Java Compile Next: How to extend BufferedImage class to support |