Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:


It also works fine in windows 32bit environment ,and its not working in 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

You must log in to answer this question.

Browse other questions tagged .