title: Eclipse : how we take arguments for main when run
body: <p>In Java, for a normal main method :</p>
  
  <pre><code>public static void main(String[] args){
      // code here
  }
  </code></pre>
  
  <p><code>String[] args</code> is used to take some parameters from command line. I can run this file from command prompt by : </p>
  
  <pre><code>javac filename.java
  java filename -30
  </code></pre>
  
  <p>But, it takes more steps, and I must cd to this folder. (to long for each time). So, Does anyway to run this file with some arguments for main in Eclipse.</p>
  
  <p>Thanks :) </p>