DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   fail to load Main-class manifest attribute from ......problem (http://www.daniweb.com/forums/thread83060.html)

teklu Jul 9th, 2007 8:57 am
fail to load Main-class manifest attribute from ......problem
 
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

Cerberus Jul 9th, 2007 9:47 am
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

Ezzaral Jul 9th, 2007 1:45 pm
Re: fail to load Main-class manifest attribute from ......problem
 
Did you specify the main class?

vinod_javas Jul 11th, 2007 1:39 am
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

teklu Jul 11th, 2007 3:12 am
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 .

peter_budo Jul 11th, 2007 4:10 am
Re: fail to load Main-class manifest attribute from ......problem
 
Then do it with command propmpt here is some explanation

iamthwee Jul 11th, 2007 7:30 am
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

teklu Jul 12th, 2007 9:26 am
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 .

peter_budo Jul 12th, 2007 10:06 am
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

teklu Jul 14th, 2007 3:37 am
Re: fail to load Main-class manifest attribute from ......problem
 
ok thanks I will.


All times are GMT -4. The time now is 2:33 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC