- # Not all distributions ship JDK9 in their repositories, download
- # and install Oracle JDK9 for those which are not known to provide
- # their own package
- if [ "$MANUAL_JAVA9" -eq "1" ]
- then
- echo "---> Fetching and installing JDK9"
- wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.rpm"
- yum localinstall -y jdk-9.0.1_linux-x64_bin.rpm
- fi
-