问题
I am new to JBOSS
.I downloaded jboss-as-7.1.1.Final.zip
and unzip this zip file.
Then I go to bin folder and double click on standalone.bat but new cmd window open and close within 2 -3 sec.
I tried to start server throught cmd.I open cmd in 2 ways
1.normally mode
- Run as Admin (Admin Mode).
In 2 ways I get:
Calling "P:\Software\JBOSS\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
'findstr' is not recognized as an internal or external command,
operable program or batch file.
then it stops.
So the JBoss server does not start.
I added Environment Variables like.
JBOSS_HOME : P:\Software\JBOSS\jboss-as-7.1.1.Final
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21
How can I run JBoss server and deploy projects in it on Window 7?
回答1:
Add the following value to Right Click My Compuer -> Advanced -> Environment Variables -> System Variables -> Select Path variable -> append the below value.
C:\WINDOWS\system32
It should work with that change.
回答2:
@All, Finally I got it,why I am getting this problem 'findstr' is not recognized as an internal or external command, operable program or batch file.
Because the following path C:\Windows\System32
was not set in Environment variables. I found through google.I fix it and run my server it's working great.
Thank you guys for your valuable suggestions.
回答3:
You have to go to your bin folder P:\Software\JBOSS\jboss-as-7.1.1.Final\bin\
and then execute run.bat
or standalone.bat
If you still get errors, you should delete your entire JBoss folder and then install it again and try to run it with the default settings. Once you've confirmed that works, change the settings 1 by 1 so that you know which setting caused your server to not start up.
回答4:
You could better add it in to any IDE(eclipse) and then deploy your application. That should be easy to manage your applications
来源:https://stackoverflow.com/questions/17441136/how-to-start-jboss-as-7-1-1-on-windows