I can't get JBoss as a service working. This is my install script:
copy %JS%\JavaService.exe %JBEXE%
net stop %NAME%
%JBEXE% -uninstall %NAME%
%JBEXE% -install %NAME% %JDK%\jre\bin\client\jvm.dll -Djava.class.path=%JDK%\lib\tools.jar;%JBBIN%\run.jar -start org.jboss.Main -stop org.jboss.Main -method systemExit -out %JBBIN%\stdout.log -err %JBBIN%\stderr.log -current %JBBIN% -manual
When run it says it is successfully installed. But when I try and start the service it says "Could not start the JBossService on the Local Computer. The service did not return an error....". The stdout.log and stderr.log are not created. JBoss can start fine from the run.bat script. I've checked and double checked all the paths and I'm stumped for what to try next.