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

Thread Solved

Join Date: Jan 2007
Posts: 12
Reputation: teklu is an unknown quantity at this point 
Solved Threads: 1
teklu teklu is offline Offline
Newbie Poster

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

 
0
  #1
Jul 9th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 162
Reputation: Cerberus is an unknown quantity at this point 
Solved Threads: 14
Cerberus Cerberus is offline Offline
Junior Poster

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

 
0
  #2
Jul 9th, 2007
Did you create the jar file using a manifest file?

e.g. >jar cvfm myjar.jar manifest.mf *.class
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,424
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 507
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

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

 
0
  #3
Jul 9th, 2007
Did you specify the main class?
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 871
Reputation: vinod_javas is an unknown quantity at this point 
Solved Threads: 7
vinod_javas's Avatar
vinod_javas vinod_javas is offline Offline
Practically a Posting Shark

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

 
0
  #4
Jul 11th, 2007
just check out the manifest file

In that manifest file specify your main class correctly. then it will work fine
Adios,

Vinod......
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 12
Reputation: teklu is an unknown quantity at this point 
Solved Threads: 1
teklu teklu is offline Offline
Newbie Poster

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

 
0
  #5
Jul 11th, 2007
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 .
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,177
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 479
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

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

 
1
  #6
Jul 11th, 2007
Then do it with command propmpt here is some explanation
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

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

 
0
  #7
Jul 11th, 2007
I don't know, but the following might be useful to you.

http://www.daniweb.com/forums/thread37189.html
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 12
Reputation: teklu is an unknown quantity at this point 
Solved Threads: 1
teklu teklu is offline Offline
Newbie Poster

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

 
0
  #8
Jul 12th, 2007
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 .
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,177
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 479
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

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

 
0
  #9
Jul 12th, 2007
That is fine but you should also learn how to do it from command line as you may not always have NetBeans
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 12
Reputation: teklu is an unknown quantity at this point 
Solved Threads: 1
teklu teklu is offline Offline
Newbie Poster

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

 
0
  #10
Jul 14th, 2007
ok thanks I will.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC