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

后端 未结 4 1227
终归单人心
终归单人心 2021-01-05 15:30

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/

But the problem is

相关标签:
4条回答
  • 2021-01-05 16:04

    The one word solution:

    1. set your java home value excluding bin folder like JAVA_HOME="C:\Program Files\java\jdk1.7"

    2. Use the java home in path section of system variable like ...;%JAVA_HOME\bin%

    3. Set the jboss home path like JBOSS_HOME="C:\jboss-as-7.1"

    the reason behind this is your add-user.bat file need correct path for java home and jboss home.

    0 讨论(0)
  • 2021-01-05 16:13

    Add below lines for user 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%
    
    0 讨论(0)
  • 2021-01-05 16:16

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

    0 讨论(0)
  • 2021-01-05 16:18

    You've set your JAVA_HOME variable wrong. You've 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 it's my recollection that JBoss needs a JDK, not a JRE. If that works, great; if not, you'll need to download an install a JDK instead and when you've installed that, set JAVA_HOME to the root path of the JDK install, e.g.

    JAVA_HOME=C:\java\jdk1.7.0_25
    
    0 讨论(0)
提交回复
热议问题