
1. Open service.bat and edit this: 

set SVCNAME=JBAS50SVC
set SVCDISP=JBoss Application Server 5.1
set SVCDESC=JBoss Application Server 5.1.0 GA/Platform: Windows x86
set NOPAUSE=Y


By your own values. 

And that's it!!!

