JBoss-as-7.1.1.Final上的add-user.bat,系统找不到指定的路径 [英] add-user.bat on JBoss-as-7.1.1.Final,The system cannot find the path specified
问题描述
我在我的Windows上安装了jboss-as-7.1.1.Final 7.
安装成功,我可以看到服务器运行在http:/ localhost:8080 /
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/
但问题是我试图通过add-user.bat文件添加用户。它显示错误消息,如
But the problem is I am trying to add the users through add-user.bat file. It shows a error message like
C:\ _jboss-as-7.1.1.Final \bin> add-user.bat
系统无法找到指定的路径。
按任意键继续。 。 。
C:\jboss-as-7.1.1.Final\bin>add-user.bat
The system cannot find the path specified.
Press any key to continue . . .
如果我从脚本顶部删除 @echo off
我见
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 . . .
我设置了 JBOSS_HOME
和 JAVA_HOME
在我系统的环境变量中。
任何人都可以帮忙解决这个问题吗?
I have set JBOSS_HOME
and JAVA_HOME
in environmental variables of my system.
Can any one please help to resolve this?
推荐答案
您已将 JAVA_HOME
变量设置错误。您已将其设置为
You've set your JAVA_HOME
variable wrong. You've set it to
JAVA_HOME=C:\java\jre7\bin
而你想要它没有bin目录,即只需
whereas you want it without the bin directory, i.e. just
JAVA_HOME=C:\java\jre7
然而这是我的回忆JBoss需要JDK而不是JRE。如果有效,那很好;如果没有,你需要下载安装 JDK而是,当你安装它时,将JAVA_HOME设置为JDK安装的根路径,例如
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
这篇关于JBoss-as-7.1.1.Final上的add-user.bat,系统找不到指定的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!