Add-user.bat on JBoss-as-7.1.1.Final, the system cannot find the path specified

I installed jboss-as-7.1.1.Final on my windows 7. Installation was successful, and I see a server running on http: / localhost: 8080 /

But the problem is that I'm trying to add users through the add-user.bat file. It shows an error message like

C: \ jboss-as-7.1.1.Final \ Bin> user.bat add-in
The system cannot find the path specified.
Press any key to continue.,.

If I remove @echo off from the top of the script, I see

 > if "x" == "x" (set "JBOSS_MODULEPATH=C:\jboss-as-7.1.1.Final \modules" ) > "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. > if "x" == "x" pause Press any key to continue . . . 

I set JBOSS_HOME and JAVA_HOME in my system environment variables.
Can anyone help solve this problem?

+4
source share
4 answers

You have incorrectly specified your JAVA_HOME variable. You set it to

 JAVA_HOME=C:\java\jre7\bin 

whereas you want it without the bin directory, i.e. just

 JAVA_HOME=C:\java\jre7 

However, this is my recollection that JBoss needs a JDK, not a JRE. If it works, great; if not, then you will need to download the JDK instead , and if you installed this, install JAVA_HOME in the root JDK install path, for example

 JAVA_HOME=C:\java\jdk1.7.0_25 
+5
source

You will probably need to add JAVA_HOME / bin to your PATH.

+2
source

One word solution:

  • set the value of your java house, excluding the bin folder, for example JAVA_HOME="C:\Program Files\java\jdk1.7"

  • Use java home in the system variable path section, for example ...;%JAVA_HOME\bin%

  • Set jboss source path as JBOSS_HOME="C:\jboss-as-7.1"

the reason for this in your add-user.bat file requires the correct path for java house and jboss house.

+2
source

Add the lines below for custom variables:

 variable = JAVA_HOME value= C:\Program Files\Java\jdk1.7.0_79 variable = JBOSS_HOME value= E:\anil\jboss-as-7.1.1.Final variable=path value= C:\Windows\System32;%JAVA_HOME%\bin;%JBOSS_HOME% 
-1
source

Source: https://habr.com/ru/post/1486854/


All Articles