944,110 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 10654
  • Java RSS
Jul 9th, 2007
0

fail to load Main-class manifest attribute from ......problem

Expand Post »
when I am trying to run the jar file is give me the message fail to load Main-Class manifest attribute from..... I am programming using netbeans IDE 5.5 any help
Reputation Points: 10
Solved Threads: 1
Newbie Poster
teklu is offline Offline
12 posts
since Jan 2007
Jul 9th, 2007
0

Re: fail to load Main-class manifest attribute from ......problem

Did you create the jar file using a manifest file?

e.g. >jar cvfm myjar.jar manifest.mf *.class
Reputation Points: 27
Solved Threads: 14
Junior Poster
Cerberus is offline Offline
162 posts
since Sep 2006
Jul 9th, 2007
0

Re: fail to load Main-class manifest attribute from ......problem

Did you specify the main class?
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Jul 11th, 2007
0

Re: fail to load Main-class manifest attribute from ......problem

just check out the manifest file

In that manifest file specify your main class correctly. then it will work fine
Reputation Points: 119
Solved Threads: 7
Practically a Posting Shark
vinod_javas is offline Offline
871 posts
since Feb 2007
Jul 11th, 2007
0

Re: fail to load Main-class manifest attribute from ......problem

as I describe I am using netbeans and when I try to modify the netbeans created manifest.mf and compile it . and then try to compile it complaines "corrupted file" when trying to run double clicking the jar file .
Reputation Points: 10
Solved Threads: 1
Newbie Poster
teklu is offline Offline
12 posts
since Jan 2007
Jul 11th, 2007
1

Re: fail to load Main-class manifest attribute from ......problem

Then do it with command propmpt here is some explanation
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Jul 11th, 2007
0

Re: fail to load Main-class manifest attribute from ......problem

I don't know, but the following might be useful to you.

http://www.daniweb.com/forums/thread37189.html
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jul 12th, 2007
0

Re: fail to load Main-class manifest attribute from ......problem

guys thanks very much I got the solution . in netbeans5.5 simply in the project properties select the run panel and enter the main class name then build the project that is all .
Reputation Points: 10
Solved Threads: 1
Newbie Poster
teklu is offline Offline
12 posts
since Jan 2007
Jul 12th, 2007
0

Re: fail to load Main-class manifest attribute from ......problem

That is fine but you should also learn how to do it from command line as you may not always have NetBeans
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 874
Code tags enforcer
peter_budo is offline Offline
6,659 posts
since Dec 2004
Jul 14th, 2007
0

Re: fail to load Main-class manifest attribute from ......problem

ok thanks I will.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
teklu is offline Offline
12 posts
since Jan 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Dining Philosophers Problem
Next Thread in Java Forum Timeline: projects window





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC