title: How to pass arguments to a java code using shell script
body: <p>I am new to java &amp; shell. I just have a vague idea about the procedure, which is like this-</p>
  
  <ol>
  <li>make an executable jar file</li>
  <li><p>make a shell script file &amp; include this command in it </p>
  
  <p>java -jar /home/usr/mystuff/jarFile.jar arg1 arg2 arg3</p></li>
  <li><p>Now the doubts are-</p>
  
  <ul>
  <li>There are so many files in my java eclipse project. Do I need to make an executable jar of only the file having main() method?</li>
  <li>Will the arguments I supply using script be collected by the main function.</li>
  <li>Whats the syntax of passing arguments in shell. Like $var or var or "var or something else</li>
  </ul></li>
  </ol>