How to run JBoss AS 7.1.1 on Windows?

I am new to JBOSS . I downloaded jboss-as-7.1.1.Final.zip and unzipped this zip file. Then I go to the bin folder and double-click on standalone.bat, but a new CMD window opens and closes within 2-3 seconds.

I tried to start the server through cmd.I open cmd in two ways

1. normal mode

  • Run as administrator (administrator mode).

In two 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 he stops.

Therefore, the JBoss server does not start.

I added environment variables, for example.

JBOSS_HOME : P:\Software\JBOSS\jboss-as-7.1.1.Final

JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21

How can I start the JBoss server and deploy projects in window 7 in it?

+4
source share
4 answers

Add the following value to the right mouse button of My Compuer → Advanced → Environment Variables → System Variables → Select the path variable → add the value below.

 C:\WINDOWS\system32 

He needs to work with this change.

+5
source

@ All, finally, I understood why I get this problem 'findstr' is not recognized as an internal or external command, operable program or batch file. Because the following path C:\Windows\System32 not set in the environment variables. I found through google.I to fix this and start my server, it works fine.

Thank you guys for your valuable suggestions.

+1
source

You need to go to the bin folder P:\Software\JBOSS\jboss-as-7.1.1.Final\bin\ , and then run run.bat or standalone.bat

If you still get errors, you should delete the entire JBoss folder, and then install it again and try to run with the default settings. After you have confirmed that this works, change the settings 1 to 1 so that you know which parameter caused your server to not start.

0
source

You can add it to any IDE (eclipse), and then deploy your application. It should be easy to manage your applications.

0
source

Source: https://habr.com/ru/post/1489410/


All Articles