Results 1 to 6 of 6
  1. #1
    karq is offline Member
    Join Date
    May 2010
    Posts
    63
    Rep Power
    0

    Default Failed to load Main-Class manifest attribute from

    Hey everyone :)

    So I exported my project to a jar file and when I try to run it, then it gives this error

    Failed to load Main-Class manifest attribute from

    How can i fix it?

  2. #2
    Zack's Avatar
    Zack is offline Senior Member
    Join Date
    Jun 2010
    Location
    Destiny Islands
    Posts
    692
    Rep Power
    5

    Default

    This is probably because you have no Main-Class attribute specified in the manifest file.

    How to make a JAVA application - executable JAR archive (Troubleshooting section)

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  4. #4
    karq is offline Member
    Join Date
    May 2010
    Posts
    63
    Rep Power
    0

    Default

    Got it working.

    Added Main-Class: package.myclass to the manifest fail.

  5. #5
    Adamant421 is offline Member
    Join Date
    Sep 2011
    Posts
    1
    Rep Power
    0

    Default Re: Failed to load Main-Class manifest attribute from

    please explain I have same problem :s


    Thanks

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default Re: Failed to load Main-Class manifest attribute from

    @post #4, you can find the explanation.

    By the way, it is not the solution for your issue you better start a new thread.

Similar Threads

  1. different multiple public class and main class
    By mr idiot in forum New To Java
    Replies: 2
    Last Post: 01-01-2009, 01:10 PM
  2. Invalid usebean class attribute - new to java
    By grinsalot in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-04-2008, 05:54 AM
  3. Exception Failed to Generate Wrapper Class on WebLogic
    By christina in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 03:15 AM
  4. how to load a java class in startup
    By leonard in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 04:36 AM
  5. How to load binary content of a .class file
    By boy22 in forum Advanced Java
    Replies: 1
    Last Post: 08-03-2007, 07:21 PM

Posting Permissions

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