I need to test if the version of osx is < 10.5 inside java is this possible?
Use System.getProperty.
System.getProperty("os.version");
The list of valid arguments for the function can be found here