I need to test if the version of osx is < 10.5 inside java is this possible?
+3
A:
Use System.getProperty.
System.getProperty("os.version");
The list of valid arguments for the function can be found here
Yacoby
2009-11-25 19:12:34
As always, when down-voting please say why. I am also here to learn, so if there is something wrong with my answer I would love to know.
Yacoby
2009-11-25 23:01:06
+1
A:
System.getProperty("os.version")
Should return a string with three values for OS X, like: 10.5.1
You can also do System.getProperty("os.name")
to make sure it's OS X in the first place
Dan
2009-11-25 19:13:49