title: java : command not find
body: <p><br>
  i have a problem with install jdk on my centos.
  <br>
  i did install "java-1.8.0-openjdk-1.8.0.25-3.b17.el6_6.i386" but yet when i run "java -version", i see this error:</p>
  
  <pre><code>[root@JAVA java]# java -version
  
  -bash: java: command not found
  </code></pre>
  
  <p>i set $PATH variable too:</p>
  
  <pre><code>[root@JAVA java]# echo $PATH
  
  /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/root/bin:/root/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-3.b17.el6_6.i386/jre/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-3.b17.el6_6.i386/jre/bin/
  </code></pre>
  
  <p>what is wrong? i really tried to search. :(
  plz help me.</p>
  
  <p><strong>update</strong>:<br>
  i locate for jre and this return:</p>
  
  <pre><code>[root@JAVA java]# locate jre
  /etc/alternatives/jre
  /etc/alternatives/jre_1.8.0
  /etc/alternatives/jre_1.8.0_exports
  /etc/alternatives/jre_1.8.0_openjdk
  /etc/alternatives/jre_1.8.0_openjdk_exports
  /etc/alternatives/jre_exports
  /etc/alternatives/jre_openjdk
  /etc/alternatives/jre_openjdk_exports
  /usr/lib/jvm/jre
  /usr/lib/jvm/jre-1.7.0
  /usr/lib/jvm/jre-1.7.0-openjdk
  /usr/lib/jvm/jre-1.8.0
  /usr/lib/jvm/jre-1.8.0-openjdk
  /usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.25-3.b17.el6_6.i386
  /usr/lib/jvm/jre-openjdk
  /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-3.b17.el6_6.i386/jre
  /usr/lib/jvm-exports/jre
  /usr/lib/jvm-exports/jre-1.7.0
  /usr/lib/jvm-exports/jre-1.7.0-openjdk
  /usr/lib/jvm-exports/jre-1.8.0
  /usr/lib/jvm-exports/jre-1.8.0-openjdk-1.8.0.25-3.b17.el6_6.i386
  /usr/lib/jvm-exports/jre-openjdk
  /var/lib/alternatives/jre_1.7.0
  /var/lib/alternatives/jre_1.8.0
  /var/lib/alternatives/jre_1.8.0_openjdk
  /var/lib/alternatives/jre_openjdk
  </code></pre>
  
  <p>which that is current path?</p>
  
  <p><strong>update 2:</strong> <br></p>
  
  <pre><code>[root@JAVA java]# yum list installed| grep java
  java-1.7.0-openjdk.i686  1:1.7.0.65-2.5.1.2.el6_5
  java-1.7.0-openjdk-devel.i686
  java-1.8.0-openjdk.i686  1.8.0.25-3.b17.el6_6
  java-1.8.0-openjdk-devel.i686
  java-1.8.0-openjdk-headless.i686
  tzdata-java.noarch       2014h-1.el6     @updates
  [root@JAVA java]# find / -name "java"
  /usr/share/bash-completion/java
  /usr/share/java
  /usr/lib/java
  /usr/lib/jvm-exports/java
  /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-3.b17.el6_6.i386/bin/java
  /usr/lib/jvm/java
  /usr/bin/java
  /var/lib/alternatives/java
  /etc/alternatives/java
  /etc/pki/java
  /etc/java
  </code></pre>