- Oracle makes it difficult to download the Java SE Development Kit as an offline download because the license must be accepted first. The JDK is important to have installed as several Homebrew apps require it to exist first. - This provides a prompt for checking that the Java SE Development Kit has been installed before proceeding as the original way of installing it assumed you had visited the Oracle web site and accepted the license.
23 lines
631 B
Bash
23 lines
631 B
Bash
#! /usr/bin/env bash
|
|
|
|
# DESCRIPTION
|
|
# Defines global settings.
|
|
|
|
# SETTINGS
|
|
# General
|
|
set -o nounset
|
|
set -o errexit
|
|
set -o pipefail
|
|
IFS=$'\n\t'
|
|
|
|
# Globals
|
|
export MAC_OS_BOOT_DISK_CREATOR="/Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia"
|
|
export MAC_OS_BOOT_DISK_PATH="/Volumes/Untitled"
|
|
export MAC_OS_INSTALLER_PATH="/Applications/Install macOS Sierra.app"
|
|
export MAC_OS_WORK_PATH=/tmp/downloads
|
|
export MAC_OS_CONFIG_PATH="../mac_os-config"
|
|
|
|
# Java
|
|
export JAVA_LABEL="Java SE Development Kit"
|
|
export JAVA_DOWNLOAD_URL="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"
|