java -version
wget --no-cookies --header "Cookie: gpw_e24=xxx; oraclelicense=accept-securebackup-cookie;" "http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.rpm"
sudo rpm -i jdk-8u11-linux-x64.rpm
java -version
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_11/bin/java 20000
sudo /usr/sbin/alternatives --config java
java -version
export JAVA_HOME=/usr/java/jdk1.8.0_66/
export JRE_HOME=/usr/java/jdk1.8.0_66/jre/
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
echo $PATH