Executing Jar files through bat file
Posted: 20 Sep 2011 06:03
Hi
I have a below problem
I have installed latest java 1.7 application from sun and i want to execute the java application through bat file
Below is my bat file
@echo off
Title Java Account Manager 1.0 Startup
cd .\Initial
C:\Program Files\Java\jre7\bin\java.exe -jar CertifyAMInitial.jar"
When i execute it i am getting the below error
When I try to execute executeInitial.bat through command line it gives me the below error
"C:\Program' is not recognized as an internal or external command,operable program or batch file"
Can you please help me
Thanks,
Kumar
I have a below problem
I have installed latest java 1.7 application from sun and i want to execute the java application through bat file
Below is my bat file
@echo off
Title Java Account Manager 1.0 Startup
cd .\Initial
C:\Program Files\Java\jre7\bin\java.exe -jar CertifyAMInitial.jar"
When i execute it i am getting the below error
When I try to execute executeInitial.bat through command line it gives me the below error
"C:\Program' is not recognized as an internal or external command,operable program or batch file"
Can you please help me
Thanks,
Kumar