title: I have installer java 1.8.0_77, but still get dependencies error
body: <p>I have a CentOS 7 box. And I have installed Java 1.8.0_77 on it:</p>
  
  <pre><code>[root@centos7 ~]# java -version
  java version "1.8.0_77"
  Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
  Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
  </code></pre>
  
  <p>And</p>
  
  <pre><code>[root@centos7 ~]# echo $JAVA_HOME
   /opt/install/jdk1.8.0_77
  [root@centos7 ~]# echo $JRE_HOME
  /opt/install/jdk1.8.0_77/jre
  </code></pre>
  
  <p>But when I try to install a RPM, I still get error:</p>
  
  <pre><code>[root@centos7 ~]# rpm -ivh xxxx.x86_64.rpm
  error: Failed dependencies:
      jre &gt;= 1.8.0_71 is needed by xxxx.x86_64
  </code></pre>
  
  <p>Why?</p>