Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weird value of System.getProperty("os.name")

Tags:

java

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

The returned value is "windows vista"!

Seems wrong, very wrong. And yes I am sure that I am running the app on a windows 7 machine...

Any idea as to what is going on here?

like image 747
Wooooo Avatar asked May 27 '10 00:05

Wooooo


1 Answers

This is a known bug: Bug ID 6819886. It mentions that it's been fixed in among others Java 7(b55) and Java 6u14(b04). So upgrading to the latest should resolve the issue.

like image 142
BalusC Avatar answered Oct 22 '22 18:10

BalusC