title: Jar Maker -- Which is the main class?
body: <p>Alrighty, so I'm working on making a .jar for a client for a little game and I know how to use everything and have done this before, on windows, now i'm on a mac. This shouldn't make a difference but incase you wanted to know, there you go. </p>
  
  <p>Now, I have a folder in eclipse named client, now normally the client.java is the main class but there is another named EGUI, this has the "public static void main(String[] args)", but in my client.java file, it also has a method like this: </p>
  
  <pre><code> public static final void main(String args[])
  {
      try
      {
          anInt957 = 0;
          anInt958 = 0;
          method52(false);//highmem
          aBoolean959 = true;//members
          signlink.storeid = 32;
          signlink.startpriv(InetAddress.getLocalHost());
          client client1 = new client();
          client1.method1(503, false, 765);
          setserver(args[0], "5555");
          return;
      }
      catch(Exception exception)
      {
          return;
      }
  }
  </code></pre>
  
  <p>I guess my question is, does the "final" make it the main file? Or would it still be the EGUI, which looks like this: </p>
  
  <pre><code>import java.awt.BorderLayout;
  import java.awt.Cursor;
  import java.awt.event.ActionEvent;
  import java.awt.event.ActionListener;
  import javax.swing.*;
  
  public class EGUI
  { 
  public static void main(String args[])
  {
                  client.main(new String[] {
              "127.0.0.1", "127.0.0.1", "127.0.0.1"
          });
      }
  }
  </code></pre>
  
  <p>So, what i'm asking for is, why is it that when I'm setting the main file to EGUI, it isnt working? the applet opens up, but I keep getting an "error connecting to server" message every time, when I run it through terminal by copying the run.bat info and pasting that, it works perfectly! Any help is greatly appreciated!</p>