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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:31:08+00:00 2026-06-02T03:31:08+00:00

Okay, I have a strange problem. I wanted to run one of my programs

  • 0

Okay, I have a strange problem. I wanted to run one of my programs as a .jar file, but when I open it by double-clicking it, I get an error message like "Could not find main class, program is shutting down". I’m pretty sure I did everything right, the jar should work afaik. I also tried other programs, it’s the same with every single one. (I’m creating the .jar’s through BlueJ) There is no problem when I run them through a .bat . And here comes the strangest thing of all: The .jar’s have worked some time ago (one or two months I guess), and I don’t remember doing anything different. It’s the same BlueJ-Version. Okay, maybe Java updated and something got messed up… I googled, but I couldn’t find a solution. (some people seem to have a similar problem, and it seems to be only them who can’t run their .jar’s; they uploaded them and other people say the .jar’s run fine.) What could be the problem? How can I solve it?

I’d really appreciate some help here.
Thank you 🙂

EDIT: okay guys, you’re making me unsure here. Imma check the manifest again, at this unholy time ( 1:34 am ) 😛

EDIT2: This is my MANIFEST.MF
Manifest-Version: 1.0
Class-Path:
Main-Class: LocalChatClientGUI
[empty line]
[empty line]

The Main class is correct.

EDIT3: Thanks to hgrey: There is nothing wrong with the jar. I can run it from a bat file, which actually should not be different from double-clicking the jar, right? Yet I get the error when clicking it, and it works fine through the bat.

EDIT4: I finally solved the problem. I re-installed the JRE and now it works, although I can’t see any version differences.

Thanks to everyone!

  • 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-02T03:31:09+00:00Added an answer on June 2, 2026 at 3:31 am

    When java runs the jar it will look at manifest.mf file inside the jar’s META-INF directory and will read MainClass attribute in there. If it is not specified you will get the message you describe. So, try to include correct manifest.mf into the jar. Generation of manifest.mf is supported by popular java build tools like Ant or Maven.

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

Sidebar

Related Questions

Okay I have the following problem. I want to get the current dateTime and
I have a strange problem with a website in PHP but it will happen
okay i have found the way to run a video in a image.... the
Okay I have updated my code a little, but I am still not exactly
I have a very strange problem in developing MFC programming. I used connect() function
I have a strange situation in one view controller where this line crashes in
Okay I have been working on a website but I keep on having an
I have a very strange problem and i don't know what to do about
Okay, I'm NOT new to Objective-C but I encountered a strange bug, that i
Okay, so this is a very strange problem and it has a lot of

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.