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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:03:52+00:00 2026-05-24T09:03:52+00:00

I have to write a program for a class I’m taking, and he gave

  • 0

I have to write a program for a class I’m taking, and he gave us an executable jar to run and compare our results with his.

However, I’m having trouble running it, even after reading some other related topics. I am given absolutely nothing else but the jar, which I can’t extract.

I just want to run it somehow – either in a shell or on Eclipse.

==
Sorry for the lack of specifics:
It says I’m missing the Main-Class manifest attribute. I know when this happens you should go into the manifest and from picking around, I did notice that the manifest did NOT contain that attribute. I added it, but whenever I try to use jar uvf to add it back in, it just ignores it.
“jar uvf EditDistance.jar META-INF/
ignoring entry META-INF/
ignoring entry META-INF/MANIFEST.MF ”

Help please? :/

  • 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-24T09:03:53+00:00Added an answer on May 24, 2026 at 9:03 am

    It is possible you were not given an executable jar. You may have to use jtahlborn’s solution. If you can’t figure out what to use for com.example.MainClass, you can try

    jar -tf EditDistance.jar
    

    This will give you a list of all files in the jar. Hopefully one is called either EditDistance.class or Main.class (with some prefix, so: “com/example/EditDistance.class”).

    If you see something like that, just translate slashes to dots, drop the .class suffix, and plug that in to jtahlborn’s solution:

    java -cp EditDistance.jar com.example.EditDistance
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program for a C class I need to write. The program
In my homework for my C class, we have to write a program that
For a class I have to write a program to read in a text
I have a class assignment where I have to write a program that will
I have to write a program for my C programming class that converts IPV4
I have an assignment in my C programming class to write a program to
I have to write a program for my C programming class that takes a
For class I have an assignment: Write a C++ program that will output the
I have to write a program that read from a file that contains the
I have to write a program that sniffs network packets (part1-the simple part). 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.