Fixed Java SE Development Kit install.
- 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.
This commit is contained in:
@@ -6,11 +6,18 @@
|
|||||||
printf "Installing Xcode CLI tools...\n"
|
printf "Installing Xcode CLI tools...\n"
|
||||||
xcode-select --install
|
xcode-select --install
|
||||||
|
|
||||||
read -p "Have you completed the Xcode CLI tools install (y/n)? " response
|
read -p "Have you completed the Xcode CLI tools install (y/n)? " xcode_response
|
||||||
if [[ "$response" != "y" ]]; then
|
if [[ "$xcode_response" != "y" ]]; then
|
||||||
printf "ERROR: Xcode CLI tools must be installed before proceeding.\n"
|
printf "ERROR: Xcode CLI tools must be installed before proceeding.\n"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Installing Java...\n"
|
printf "Installing $JAVA_LABEL...\n"
|
||||||
install_java "$JAVA_URL" "$JAVA_VOLUME_NAME"
|
printf "%s\n" "You must manually accept the license and download the $JAVA_LABEL: $JAVA_DOWNLOAD_URL."
|
||||||
|
open $JAVA_DOWNLOAD_URL
|
||||||
|
|
||||||
|
read -p "Have you completed the $JAVA_LABEL install (y/n)? " java_response
|
||||||
|
if [[ "$java_response" != "y" ]]; then
|
||||||
|
printf "ERROR: $JAVA_LABEL must be installed before proceeding.\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|||||||
@@ -18,5 +18,5 @@ export MAC_OS_WORK_PATH=/tmp/downloads
|
|||||||
export MAC_OS_CONFIG_PATH="../mac_os-config"
|
export MAC_OS_CONFIG_PATH="../mac_os-config"
|
||||||
|
|
||||||
# Java
|
# Java
|
||||||
export JAVA_VOLUME_NAME="JDK 8 Update 101"
|
export JAVA_LABEL="Java SE Development Kit"
|
||||||
export JAVA_URL="http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-macosx-x64.dmg"
|
export JAVA_DOWNLOAD_URL="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"
|
||||||
|
|||||||
Reference in New Issue
Block a user