Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Input to an executable jar from a batch file

Raja Pandian CDec 20 2012 — edited Dec 22 2012
Hi, I have created an executable jar program to receive the input during runtime from a batch file. I have tried to run the program by passing arguments at runtime but the code doesn't seem to execute. Can anyone help me out to pass an argument to the java program using the batch file. The flow of my project is -> The batch file triggers the executable jar file (I am able to execute till this !) -> The input to the executable jar file should be fetched from the arguments given in the batch file which will be taken as the input for the java program.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2013
Added on Dec 20 2012
12 comments
4,164 views