How can I run a batch file and pass parameters to jar file?
this doesn\'t work
mybat.bat
java -jar log_parser.jar %1 %2 %3 %
1) You could try to use
"-Dfile=C:\trace_small.log -Dstr=Storing"
The variables would be set as Java System Property, but not as Parameters into a main-method.
2) Try to put the arguments without '='
log_parser.bat -file C:\trace_small.log -str Storing