Set JAVA_HOME for mac.