Strange value System.getProperty ("os.name")

I am trying to get System.getProperty("os.name")my own Windows 7 machine. I am running a Java application directly from the machine from Eclipse.

Return value "windows vista"!

It seems wrong, very wrong. And yes, I'm sure I'm running the application on a Windows 7 machine ...

Any idea what is going on here?

+5
source share
1 answer

This is a known bug: Error ID 6819886 . He mentions that it has been fixed, among others, Java 7 (b55) and Java 6u14 (b04). Therefore, updating to the latest version should solve the problem.

+11
source

All Articles