title: Setup JAVA_HOME vs JRE_HOME vs PATH environment variables
body: <p>Do I need all three environment variables if I want to compile/run or just run Java applications in linux platform?</p>
  
  <pre><code>JAVA_HOME   export JAVA_HOME=/opt/jdk1.7.0_75
  JRE_HOME    export JRE_HOME=/opt/jdk1.7.0_75/jre
  PATH        export PATH=$PATH:/opt/jdk1.7.0_75/bin:/opt/jdk1.7.0_75/jre/bin
  </code></pre>