title: JAVA_HOME is not set. Unexpected result may occur. Set JAVA_HOME to the directory of your local JDK to avoid this message
body: <p>I am trying to install jboss-as-7.1.1.Final.
  First I remarqued that I can't access the administration page of JBoss. Then I tried to add user and password from the command prompt and I saw this message appear:</p>
  
  <blockquote>
    <p>JAVA_HOME is not set. Unexpected result may occur. Set JAVA_HOME to the    directory of your local JDK to avoid this message.</p>
  </blockquote>
  
  <p>When I've search for the problem, I've understand that I have to set java_home in the run.bat. But my run.bat content is different:</p>
  
  <pre><code>#!/bin/sh
  # Placeholder for people used to run.sh from older version redirecting them to read the readme
  echo 
  echo ========================================================================================
  echo 
  echo To start JBoss Application Server please see `pwd`/../README.txt
  echo 
  echo ========================================================================================
  echo
  </code></pre>