invoking a java application from command line
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2473557/java-library-command-line-option-parser">Java Library: Command Line Option Parser</a>  </p>
</blockquote>



<p>I have to build a <code>Java</code> application that will be launched with this command line:</p>

<pre><code>myapplicationname [–n num] [-x num –y num] [-t] [-a]
</code></pre>

<p>How can I do this?
I use args[i] to collect the arguments from the command line but I'm looking for other form to do this.</p>
