Question

I am new to JBOSS.I downloaded jboss-as-7.1.1.Final.zipand 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

  1. 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?

Was it helpful?

Solution

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.

OTHER TIPS

@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.

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.

You could better add it in to any IDE(eclipse) and then deploy your application. That should be easy to manage your applications

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top