title: add-user.bat on JBoss-as-7.1.1.Final,The system cannot find the path specified
body: <p>i've  installed jboss-as-7.1.1.Final on my windows 7.
  the installation was successfull, and i can see the server running on http:/localhost:8080/</p>
  
  <p>But the problem is I am trying to add the users through add-user.bat file. It shows a error message like</p>
  
  <blockquote>
    <p>C:\jboss-as-7.1.1.Final\bin>add-user.bat<br>
    The system cannot find the path specified.<br>
    Press any key to continue . . .</p>
  </blockquote>
  
  <p>If I remove <code>@echo off</code> from the top of the script I see</p>
  
  <pre><code>&gt; if "x" == "x" (set "JBOSS_MODULEPATH=C:\jboss-as-7.1.1.Final \modules" )   
  &gt; "C:\java\jre7\bin\bin\java" -jar "C:\jboss-as-7.1.1.Fina l\jboss-modules.jar"
         -mp "C:\jboss-as-7.1.1.Final\modules" org.jboss.as .domain-add-user
  The system cannot find the path specified.   
  &gt; if "x" == "x" pause   
  Press any key to continue . . .
  </code></pre>
  
  <p>I have set <code>JBOSS_HOME</code> and <code>JAVA_HOME</code> in environmental variables of my system.<br>
  Can any one please help to resolve this?</p>