1. Copy …\jboss-ep-5.1\native\sbin to …\jboss-eap-5.1\jboss-as\bin
2. Locate the cmd.exe file in the path C:\Windows\System32\ and right click to Run as administrator.
The following command prompt is displayed:
3. Navigate to the path …\jboss-eap-5.1\jboss-as\bin\ in the command prompt and execute the command service.bat install
The service JBEAP5SVC -SERVER1 has been created.
4. We can start and stop the service from the Task Manager.