curl -O https: //download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_linux-x64_bin.tar.gz tar zxvf openjdk- 11.0 .1_linux-x64_bin.tar.gz mv jdk- 11.0 .1 /usr/local/ vi /etc/profile.d/jdk11.sh # create new export JAVA_HOME=/usr/local/jdk- 11.0 .1 export PATH=$PATH:$JAVA_HOME/bin source /etc/profile.d/jdk11.sh java -version openjdk version "11.0.1" 2018 - 10 - 16 OpenJDK Runtime Environment 18.9 (build 11.0 .1 + 13 ) OpenJDK 64 -Bit Server VM 18.9 (build 11.0 .1 + 13 , mixed mode)