如何在 Windows 中运行 jboss 服务器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6027008/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 16:52:01  来源:igfitidea点击:

How to run jboss server in windows?

windowsjbosscmd

提问by subodh

I am new in jboss and now i am configuring jboss server with windows. I am setting env. variable as:

我是 jboss 的新手,现在我正在用 windows 配置 jboss 服务器。我正在设置环境。变量为:

JBOSS_HOME= C:\jboss-4.2.0.GA
Path = C:\jboss-4.2.0.GA\bin

and while starting jboss through run.bat, it will do nothing just blinking once and disable the prompt.

在通过 启动 jboss 时run.bat,它不会做任何事情,只是闪烁一次并禁用提示。

It will gives me out as

它会给我作为

The filename, directory name, or volume label syntax is incorrect. 'findstr' is not recognized as an internal or external command, operable program or batch file.

文件名、目录名或卷标语法不正确。'findstr' 不是内部或外部命令,也不是可运行的程序或批处理文件。

回答by Oleg Pavliv

If you take a look in run.bat you will see that it uses findstrcommand.

如果您查看 run.bat,您将看到它使用findstr命令。

"%JAVA%" -version 2>&1 | findstr /I hotspot > nul

You modified your PATH environment and it cannot find findstrwhich is a native Windows command.

您修改了 PATH 环境,但它找不到findstr哪个是本机 Windows 命令。

You don't need to modify PATH to use JBOSS. If you do keep old PATH values, like

您无需修改​​ PATH 即可使用 JBOSS。如果您保留旧的 PATH 值,例如

set PATH = C:\jboss-4.2.0.GA\bin;%PATH%