Java Runtime Environment (JRE) Version Detection (Mac OS X)

Summary
Detection of installed version of Java. The script logs in via ssh, and gets the version via command line option 'java -version'.
Detection
executable version check