Check if Java is installed on OS X

I think this check will work for older versions, but it's known to work on the
10.8 machines I just checked.