Step 1 :- Download jre from oracle.com, link is given below description please find it below
http://www.oracle.com/technetwork/jav...
step 2 :-install jre with rpm
step 3 :-go to the root directory and open vi .bashrc
and paste these two lines and restart your system
export JAVA_HOME=
export PATH=$JAVA_HOME/bin:$PATH
step 4:-check java home path by using $JAVA_HOME command