Find the answer to your Linux question:
Results 1 to 5 of 5
Hey guys, when I invoke the command java -jar jarfile.jar I get this msg: failed to load Main-Class manifest attribute from (file) Can you please tell me what this means? ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    3

    I can't execute my jar files

    Hey guys, when I invoke the command java -jar jarfile.jar I get this msg:
    failed to load Main-Class manifest attribute from (file)
    Can you please tell me what this means? Thanks

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Is this a jar you packaged yourself, or one that you downloaded that you're trying to run? If it's one you made then I would take a look at this guide and make sure it's packaged correctly. The section that deals with the manifest would probably be particularly helpful to you.

  3. #3
    Linux Engineer scrarfussi's Avatar
    Join Date
    Aug 2006
    Posts
    1,029
    also make sure you have java installed

  4. #4
    Just Joined!
    Join Date
    Jan 2008
    Posts
    3
    Actually I'm trying to unpack some files I downloaded. And yes, I do have java installed. Hmmm...

  5. #5
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Now I'm confused. Are you trying to unpack a jar or execute it? To execute it, use the "java -jar" command. To unpack it, use the "jar" command. It should be installed if you have java installed. Typical usage would be:
    Code:
    jar xf yourjar.jar
    Check the man page for more details.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...