Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9054145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:36:37+00:00 2026-06-16T13:36:37+00:00

Alrighty, so I’m working on making a .jar for a client for a little

  • 0

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.

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:

 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;
    }
}

I guess my question is, does the “final” make it the main file? Or would it still be the EGUI, which looks like this:

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"
        });
    }
}

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T13:36:39+00:00Added an answer on June 16, 2026 at 1:36 pm

    public static void main(String args[]) means you can execute the class from the commandline. The final keyword means the method cannot be overridden by a sub class.

    In your case this does not make it the jar’s main execution class. The main class is set in META-INF/MANIFEST.MF. Normally it should have a line:

    Main-Class: classname
    

    but then with the actual class.

    So open the jar with a zip program, and check MANIFEST.MF.

    Your client.java has a main method, for testing purposes I suppose.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alrighty. Here is my problem. I have just about everything done. I just need
Alright so i have been working on this Dynamic load of a spinner from
Alrighty so below I have this script doing exactly what I want; I'm using
Alright, this is a little bit complicated. I have a composite control that contains
Alrighty, I don't know how I did this, probably the AS3 gods became angry
Alrighty so, I've been wanting to learn C for awhile, and now I have
Alright I don't see why this isnt working. It seems pretty simple. Here is
Alright, this is driving me nuts because my regex is working on Rubular, but
Alright so I have no idea how to even begin doing this But basically
Alright here is the thing, I have this site that was once wordpress but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.