Error in starting java application as windows services -



Error in starting java application as windows services -

i have downloaded commom-daemon tool , used java application. have created bat file shown below

set service_name=sample set pr_install=d:\commons-daemon-1.0.15-bin-windows-signed\prunsrv.exe rem service log configuration set pr_logprefix=%service_name% set pr_logpath=d:\logs set pr_stdoutput=d:\logs\stdout.txt set pr_stderror=d:\logs\stderr.txt set pr_loglevel=error rem path java installation set pr_jvm=c:\java\jre7\bin\client\jvm.dll set pr_classpath=d:\commons-daemon-1.0.15-bin-windows-signed\daemon.jar rem startup configuration set pr_startup=auto set pr_startmode=jvm set pr_startclass=com.someservice set pr_startmethod=start rem shutdown configuration set pr_stopmode=jvm set pr_stopclass=com.someservice set pr_stopmethod=stop rem jvm configuration set pr_jvmms=256 set pr_jvmmx=1024 set pr_jvmss=4000 set pr_jvmoptions=-duser.language=de;-duser.region=de

in cmd , install service using command

prunsrv.exe //is//sample

after this, service named sample become available in list of services , when tried start it shows:

windows not start sample on local computer. more info review scheme event log. if non-microsoft service, contact service vendor , refer server specific

error code 1

updated when run

prunsrv.exe //es//sample

it shows

the info area passed scheme phone call small. failed start service

can 1 help me in this?

i had same problem. in case (not yours exactly), problem jvm.dll path, because variable %java_home% has spaces. solve this, modify assignment

set cg_path_to_jvm=%java_home%\jre\bin\server\jvm.dll

to

set cg_path_to_jvm="%java_home%\jre\bin\server\jvm.dll"

and that's all.

also, check variables assignment command:

prunmgr//es//yourservicename_as_in_windows

java windows-services

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -