Running Java without installing in Linux

Copy jre-8u211-linux-x64.tar.gz to /usr/java

tar -zxvf jre-8u211-linux-x64.tar.gz

export JAVA_HOME=/usr/java/jre1.8.0_211/bin
export PATH=$JAVA_HOME:$PATH