title: Set the JAVA_HOME variable before running Axis2 Script
body: <p>I have installed <code>axis2-1.6.2</code> on Ubuntu version 12.04. In the <code>bin</code> directory when I run <code>WSDL2Java.sh</code> command I get this message:</p>
  
  <pre><code>You must set the JAVA_HOME variable before running Axis2 Script.
  </code></pre>
  
  <p>But I have set the <code>JAVA_HOME</code> variable and when I run :</p>
  
  <pre><code>echo $JAVA_HOME
  </code></pre>
  
  <p>I get :</p>
  
  <pre><code>/usr/lib/jvm/java-7-openjdk
  </code></pre>
  
  <p>How can I fix this issue?</p>