# at each build.
#
function installJdk8 {
- echo "Setup JDK 1.8u144"
+ echo "Setup JDK 1.8u151"
mkdir -p ~/jvm
pushd ~/jvm > /dev/null
- if [ ! -d "jdk1.8.0_144" ]; then
- wget --quiet --continue --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz
- tar xzf jdk-8u144-linux-x64.tar.gz
- rm jdk-8u144-linux-x64.tar.gz
+ if [ ! -d "jdk1.8.0_151" ]; then
+ wget --quiet --continue --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
+ tar xzf jdk-8u151-linux-x64.tar.gz
+ rm jdk-8u151-linux-x64.tar.gz
fi
popd > /dev/null
- export JAVA_HOME=~/jvm/jdk1.8.0_144
+ export JAVA_HOME=~/jvm/jdk1.8.0_151
export PATH=$JAVA_HOME/bin:$PATH
}