title: batch file to run jar file with parameters
body: <p>How can I run a batch file and pass parameters to jar file?</p>
  
  <p>this doesn't work</p>
  
  <p><strong>mybat.bat</strong></p>
  
  <pre><code>java -jar log_parser.jar %1 %2 %3 %4
  </code></pre>
  
  <p>running bat file</p>
  
  <pre><code>C:\&gt;log_parser.bat -file=C:\\trace_small.log -str=Storing
  </code></pre>
  
  <p>java sees only <code>-file</code></p>