title: JAVA_HOME in bashrc
body: <p>i got this warning when i checked <code>mvn -version</code> </p>
  
  <pre><code>Warning: JAVA_HOME environment variable is not set.
  Apache Maven 3.0.5
  Maven home: /usr/share/maven
  Java version: 1.6.0_37, vendor: Sun Microsystems Inc.
  Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
  Default locale: en_US, platform encoding: UTF-8
  OS name: "linux", version: "3.19.0-25-generic", arch: "amd64", family: "unix"
  </code></pre>
  
  <p>i checked java </p>
  
  <pre><code>which java 
  /usr/bin/java
  </code></pre>
  
  <p>i checked maven</p>
  
  <pre><code>which mvn
  /usr/bin/mvn
  </code></pre>
  
  <p>what should i write in bashrc for java and maven?</p>