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

  • Home
  • SEARCH
  • 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 827381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:33:56+00:00 2026-05-15T03:33:56+00:00

Hoe can I detect the main class of my application? The one, which is

  • 0

Hoe can I detect the main class of my application? The one, which is either given on the command line or loaded from the jar given at the command line?

If this is not possible, why not?

EDIT: Maybe I wasn’t clear. I know there always can be many entry points into my app, but while the app is running, there was only one entry point used to start the current JVM. This is the one I need to know of.

  • 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-05-15T03:33:57+00:00Added an answer on May 15, 2026 at 3:33 am

    First of all, an application can have several entry points. It is simply a class that contains a public static method called main with the argument type String[].

    So, short answer, no, there may be several possible entry points of a set of classes.

    If you want to list all entry points of an application, you would simply need to iterate over the classes and look for such main method.

    If you create a “runnable jar-file” however, there will be an entry in the Manifest file looking like

    Main-Class: MyPackage.MyClass
    

    which specifies the main class of the application.

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

Sidebar

Related Questions

Hoe can I do following thing without using a VIEW from one Query. !--CREATE
I am showing my MDI windows inside the main form but in one part
flash file loads text from xml. How can hyper links be used in the
Can someone give me an example of an example of a class hierarchy relevant
I am working on a webserver which is a third party so i can
Hoe to get the full path of the file that saved on into sharepoint
I am trying to run a query that selects values from a table using
In android phonegap application I crated canvas using html and display image in that
I using class Overlay to marker place on map.. I want show infomation of
I can run redmine via webrick successfully, however with apache I get the following

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.