Autodetect JDK is installed and its location on OS X.