Sounds like JAVA_HOME is incorrect. JAVA_HOME must be set in the system variables, not the user variables, if you want to run JBoss EAP as a service.
By the way, did you look in the run.log file?
I am able to create service and also run the service.
When i create a Jboss service,i am not able to put that service in Automatic option, it goes to manual by default.
I have to go in to services.msc and then change from manual to automatic.But i want Automatic by default.
Thanks for Reply
OK, I did not understand that from your original post.
If you look at service.bat, you will notice that it uses jbosssvc.exe to install JBoss AS as a service. So, open a command prompt, cd to the bin directory and enter:
That will display the options. Your answer is in there.