my java application is successfully running in 32-bit Windows 7 as a Windows service. Recently I migrated to 64-bit.
I executed my procrun script and installed my service as I did previously for 32-bit os. It is displaying in services but failing in its launch. here is myService.bat:
cd\
C:
cd C:\myService_procrun
myService.exe //IS//myService --Install="C:\myService_procrun\myService.exe"
--Jvm=auto --Startup=auto --StartMode jvm --StartClass com.imedx.myService.client.Processor
--StartParams start -- StartMethod main --StopMode jvm --StopClass com.myService.client.Processor
--StopParams stop -- StopMethod stop --Classpath="C:\myService_procrun\myService.jar"
--DisplayName="myService"
pause
the error what I'm getting when trying to start the service:
It is showing the service specific windows error code 0.
When I checked the windows event log I found this:
Service cannot be started. The handle is invalid
and the keyword is shown as:0*80000000000000
Are there any additional configurations required to run this service in a 64 bit environment?
Yes you need 64 bit prunsrv.exe if your OS is 64 bit.