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 7411299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:22:00+00:00 2026-05-29T06:22:00+00:00

I can run my software without any problems in my IDE, but when I

  • 0

I can run my software without any problems in my IDE, but when I try to compile it to a jar, and try to run it, it says that the main class can’t be found. I succeeded to make it work perfectly several times in the past, but I found this problem few time ago, so I can’t really know when it went wrong.
The jar has a META-INF, all properly set up, like in my older versions, and the main class is there. Other peoples can’t compile too, so it’s not just me. The code is on Github, so that could be a tool to help me solve this.

But I want to know, just by reading this, is there some common mistakes that could cause this, or this is uncommon?

EDIT:
I’m using IntelliJ IDEA
and I will check if the versions are the same.

EDIT2:
They do have the same version, and it’s exporting an executable jar with the correct main class defined, as I have beeing doing for all the previous versions.

  • 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-29T06:22:00+00:00Added an answer on May 29, 2026 at 6:22 am

    Check that the MANIFEST.MF is present in the META-INF folder of the jar, and make sure that the line :

    Main-Class: yourMainClass
    

    is present inside the file, then make sure that you start the jar with this command line :

    java -jar yourjar.jar
    

    Have you tried to launch the jar file specifying the main class ? For example :

    java yourjar.jar yourMainClass
    

    Does it work in this way ?

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

Sidebar

Related Questions

Is there any API or tool that can automate software updating? It should take
I know that you can run almost all Java in Dalvik's VM that you
In Informix I can run SQL statement that use other database: INSERT INTO other_db:mytable
I need to make sure that user can run only one instance of my
I had been using eclipse in Ubuntu 9.10 without any problems. Recently I did
I have these files board.class and x4.class (x4.class has main() method). To jar these
I can run the server on my local machine and connect to it on
I can run commands like vacuumdb, pg_dump, and psql just fine in a script
I can run this command in SqlManager to detach the db ALTER DATABASE mydb
I can run RENAME TABLE student TO student_new ; The command is same and

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.