title: Setting JAVA_HOME and JRE_HOME path
body: <p>I have been allocated a Linux box in which has java available</p>
  
  <pre><code># java -version
  java version "1.7.0_09-icedtea"
  OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-x86_64)
  OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
  
  # ls -l /usr/bin/java
  lrwxrwxrwx. 1 root root 22 Feb  8  2013 /usr/bin/java -&gt; /etc/alternatives/java
  </code></pre>
  
  <p>I am new to Java and not sure if JRE is installed in ths box but based upon search:</p>
  
  <pre><code># rpm -q jre
  package jre is not installed
  # find / -iname java -print 2&gt;/dev/null
  /usr/lib/java
  /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre/bin/java
  /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
  /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre/bin/java
  /usr/bin/java
  /usr/share/java
  /var/lib/alternatives/java
  /etc/alternatives/java
  /etc/java
  /etc/pki/java
  </code></pre>
  
  <p>But</p>
  
  <pre><code># echo $JAVA_HOME
  
  # echo $JRE_HOME
  </code></pre>
  
  <p>So is JAVA is installed and JRE also - am I correct but what value I should set for JAVA_HOME and JRE_HOME env variables?</p>