title: passing command line arguments to a specific **class** in a non-executable jar file
body: <p>Some context:
  I am creating a Java project in Eclipse (only used Eclipse for a week). I picked up Java after a 13 year hiatus because I had to convert files from IBM EBCDIC 5035  &amp; 935 to UTF-16. the standalone classes (two classes in all) work great within Eclipse.
  Each class has two parameters - source file+location and target file+location
  Each class will convert about a dozen files every night.</p>
  
  <p>So now I have to automate the solution and deploy it. I used Eclipse to create a regular jar (NOT a runnable jar) so that I could call each class separately without creating a "manager" class.</p>
  
  <p>On the command prompt when I run the following command:</p>
  
  <p><strong>java -jar test.jar ConvFileCP_5035_To_UTF16 \\\\usanofp03\\Informatica\\Dev\\OutputFiles\\JDEJapanCustomer_CP939.txt \\\\usanofp03\\Informatica\\Dev\\OutputFiles\\JDEJapanCustomer.txt</strong></p>
  
  <p>The output (confirmed with system.out...) surprised me because 
  args[0] = ConvFileCP_5035_To_UTF16 (<strong>the class name!</strong>) and
  args[1] = \\\\usanofp03\\Informatica\\Dev\\OutputFiles\\JDEJapanCustomer_CP939.txt</p>
  
  <p>I flipped to using args[1] and args[2] and the program worked <strong>but I wanted to know why this is happening and what is the right thing to do here</strong></p>
  
  <p>help would be appreciated!
  Thanks,</p>