Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 ?

share|improve this question
    
Are you sure this is a batch file problem? Sounds more like a JVM/Java problem to me. –  Richard Nov 3 '12 at 12:11
    
Because jvm=auto working and jvm="C:\Java\jdk1.6.0_33\jre\bin\client\jvm.dll". is not working.mean where is the problem? so Bacth file was not accept the path instead of keyword. –  ILLA Nov 3 '12 at 12:18
    
Are you sure that path exists, and the version of Java at that location is good? –  Daniel R Hicks Nov 3 '12 at 12:24
    
(It's a little unusual to have Java installed at `C:\Java`) –  Daniel R Hicks Nov 3 '12 at 12:25
    
sure.the version of java exists in that path.I have checked the path. –  ILLA Nov 3 '12 at 12:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.