title: java_home environment variable in linux not found
body: <p>I'm trying to add java_home in linux machine (centos 5.8)</p>
  <p>I'm adding this part to setting JAVA_HOME and PATH for all users in my machine</p>
  <blockquote>
  <h1>vi /etc/profile</h1>
  <p>export JAVA_HOME=/opt/jdkx.x.x_xx</p>
  <p>export PATH=$PATH:$JAVA_HOME/bin</p>
  </blockquote>
  <p>after seting it up, i try to verify it by using echo command</p>
  <blockquote>
  <p>echo $JAVA_HOME</p>
  </blockquote>
  <p>but it does not give me any path.Is there something wrong with my configuration?</p>