title: Raspberry pi update the java path
body: <p>I installed the last image "RASPBIAN Debian Wheezy" on my Pi and it contains java 8
  After that I installed java 7:
  and I want to modify the java path from java 8 to java 7
  So I updated my environment variables to:</p>
  
  <pre><code>export JAVA_HOME=/usr/lib/jvm/jdk-7-oracle-armhf/bin/java
  export PATH=$PATH:/usr/lib/jvm/jdk-7-oracle-armhf/bin
  </code></pre>
  
  <p>I added them to my ~/.bashrc</p>
  
  <p>but still when I execute java -version I got the java 8, even after reboot:</p>
  
  <pre><code>java -version
  java version "1.8.0"
  Java(TM) SE Runtime Environment (build 1.8.0-b132)
  Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
  </code></pre>
  
  <p>and when I display my envirnment variables, I got the java 7!:</p>
  
  <pre><code>echo $PATH
  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/jdk-7-oracle-armhf/bin
  
  pi@raspberrypi /usr/bin $ echo $JAVA_HOME
  /usr/lib/jvm/jdk-7-oracle-armhf/bin/java
  </code></pre>
  
  <p>How can I update the path so that the command "java -version" gave me the java 7?</p>