# yum install java
*.tar.gz
tar xzvf jre-****-linux-i586.tar.gz
*.rpm
# install
rpm -ivh jre-****-linux-i586.rpm
# upgrade
rpm -Uvh jre-****-linux-i586.rpm
$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
Edit file $HOME/.runjs-env-init.sh