I have written batch file for my project to use commonly for the both 32 and 64 bit environments of windows.
%cd%\bin\prunsrv%ServiceVersion%.exe ^
//IS//ServiceName ^
--DisplayName="Service Name" ^
--Description "Service started" ^
--LogPath serviceLog --LogPrefix=debug.log --LogLevel Debug ^
--Jvm=Auto --Classpath=%CLASSPATH%^
In my batch file i have jvm and set as Auto by default and it's works fine.I have replaced by full path for jvm using following code:
--jvm="C:\Java\jdk1.6.0_33\jre\bin\client\jvm.dll"
It also works fine in windows 32bit environment ,and its not working in windows64bit.windows bit 64 bit accepts only jvm=auto.It is not accept the full path.
I have referred this link.They said both are working.I dont know why its not working in 64 bit environment ?
How to solve ?
