What tool or package are you using to run JBoss AS as a Windows service? If you are using JBoss Native, then follow Wolf-Dieter's advice. If you are using Tanuki Java Service then you will have to edit the registry. If neither of these two, provide a URL for the one you are using.