Forums Register Login

executing java from .bat file with parameters

+Pie Number of slices to send: Send
Hi All,

I need to run a java application using a dos batch file. Below is my code. All jar files are being added to the classpath and also able to display then on console. But it is not executing the class
CommandLineJobRunner. i doubt I am using the command in a properway. I am not sure how to specify parameter like ( applicationContext.xml accountsJob). If anyone is having idea how to do it please let me know.



Thanks
Peter
+Pie Number of slices to send: Send
You specify the parameters according to how the program's entry point -- the public static void main(...) method -- processes them.
This tiny ad will self destruct in five seconds.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1568 times.
Similar Threads
runnning a java program via a batch file
how to redirect the tomcat (5.0) console output to a text file
Unix/windows - sh/bat file problem
Help needed in ant ejbjar task
Adding class-path to manifest
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:10:54.