I need to test if the version of osx is < 10.5 inside java is this possible?
Try
System.getProperty("os.name")
and/or
System.getProperty("os.version")
It returns String
HERE you can find more info about System.getProperties