File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes setup not running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "setup not running" Watch "setup not running" New topic
Author

setup not running

Sandeep Mukherji
Ranch Hand

Joined: Mar 23, 2008
Posts: 46
first compliled all the java files which created a package exp...
then created a "mymanifest.mf" file parallel to the exp folder
in the manifest file I added these thing
Manifest-Version: 1.2
Main-Class: Login (i.e, my java file having main())
Created-By: 1.6 (Sun Microsystems Inc.)

then used the following command
jar cvfm setup.jar mymanifest.mf exp.*
it showed:
F:\Sandeep\Projects\Exporters>jar cvfm setup.jar mymanifest.mf exp.*
added manifest
adding: exp/(in = 0) (out= 0)(stored 0%)
adding: exp/Add_Export_Com.java(in = 5735) (out= 1817)(deflated 68%)
adding: exp/UpdationListener.class(in = 1665) (out= 943)(deflated 43%)
adding: exp/Show_List$1.class(in = 1144) (out= 620)(deflated 45%)
adding: exp/Show_List.class(in = 3763) (out= 2235)(deflated 40%)
adding: exp/UpdateButtonAction.class(in = 2489) (out= 1326)(deflated 46%)
adding: exp/Add_Buyer.java(in = 5862) (out= 1875)(deflated 68%)
adding: exp/Show_List$2.class(in = 800) (out= 492)(deflated 38%)
adding: exp/Update_Buyer.class(in = 3788) (out= 2077)(deflated 45%)
adding: exp/Menu_Bar.class(in = 6993) (out= 3359)(deflated 51%)
adding: exp/Login$3.class(in = 1171) (out= 690)(deflated 41%)
adding: exp/Delete_Buyer.java(in = 4165) (out= 1466)(deflated 64%)
adding: exp/Login$2.class(in = 613) (out= 380)(deflated 38%)
adding: exp/Login.class(in = 3415) (out= 1913)(deflated 43%)
adding: exp/Login$1.class(in = 945) (out= 548)(deflated 42%)
adding: exp/Add_Consignee.java(in = 5732) (out= 1819)(deflated 68%)
adding: exp/FetchConnection.class(in = 870) (out= 494)(deflated 43%)
adding: exp/Delete_Buyer.class(in = 3774) (out= 2080)(deflated 44%)
adding: exp/ButtonAction.class(in = 2554) (out= 1357)(deflated 46%)
adding: exp/Add_Export_Com$2.class(in = 827) (out= 491)(deflated 40%)
adding: exp/Update_Buyer.java(in = 8445) (out= 2592)(deflated 69%)
adding: exp/ExportListener.class(in = 3122) (out= 1621)(deflated 48%)
adding: exp/Add_Export_Com.class(in = 3617) (out= 2093)(deflated 42%)
adding: exp/Add_Export_Com$1.class(in = 1166) (out= 614)(deflated 47%)
adding: exp/Add_Consignee$2.class(in = 821) (out= 488)(deflated 40%)
adding: exp/Add_Consignee$1.class(in = 1161) (out= 612)(deflated 47%)
adding: exp/Add_Consignee.class(in = 3616) (out= 2093)(deflated 42%)
adding: exp/Menu_Bar.java(in = 10472) (out= 1831)(deflated 82%)
adding: exp/ConsigneeListener.class(in = 3124) (out= 1613)(deflated 48%)
adding: exp/Add_Buyer$1.class(in = 1141) (out= 609)(deflated 46%)
adding: exp/Add_Buyer.class(in = 3582) (out= 2088)(deflated 41%)
adding: exp/Add_Buyer$2.class(in = 797) (out= 485)(deflated 39%)
adding: exp/Login.java(in = 3086) (out= 1099)(deflated 64%)
adding: exp/AddListener.class(in = 3092) (out= 1608)(deflated 47%)
adding: exp/Delete_Exporter.java(in = 4231) (out= 1463)(deflated 65%)
adding: exp/FetchConnection.java(in = 444) (out= 252)(deflated 43%)
adding: exp/Delete_Exporter.class(in = 3818) (out= 2084)(deflated 45%)
adding: exp/Update_Consignee.java(in = 8526) (out= 2587)(deflated 69%)
adding: exp/Update_Consignee.class(in = 3824) (out= 2083)(deflated 45%)
adding: exp/Update_Exporter.java(in = 8503) (out= 2590)(deflated 69%)
adding: exp/Update_Exporter.class(in = 3844) (out= 2107)(deflated 45%)
adding: exp/Delete_Consignee.java(in = 4213) (out= 1456)(deflated 65%)
adding: exp/Delete_Consignee.class(in = 3815) (out= 2074)(deflated 45%)
adding: exp/ConsigneeButtonAction.class(in = 2582) (out= 1356)(deflated 47%)
adding: exp/ExporterButtonAction.class(in = 2594) (out= 1367)(deflated 47%)
adding: exp/Menu_Bar$1.class(in = 608) (out= 379)(deflated 37%)
adding: exp/UpConsigneeBAction.class(in = 2529) (out= 1328)(deflated 47%)
adding: exp/UpdationCListener.class(in = 1701) (out= 949)(deflated 44%)
adding: exp/Show_List_Consignee.class(in = 3777) (out= 2206)(deflated 41%)
adding: exp/Show_List_Consignee$1.class(in = 1188) (out= 623)(deflated 47%)
adding: exp/Show_List_Consignee$2.class(in = 854) (out= 501)(deflated 41%)
adding: exp/UpExporterBAction.class(in = 2523) (out= 1329)(deflated 47%)
adding: exp/UpdationEListener.class(in = 1700) (out= 950)(deflated 44%)
adding: exp/Show_List_Exporters.class(in = 3776) (out= 2209)(deflated 41%)
adding: exp/Show_List_Exporters$2.class(in = 853) (out= 502)(deflated 41%)
adding: exp/Show_List_Exporters$1.class(in = 1187) (out= 624)(deflated 47%)
adding: exp/Item_Bank.java(in = 5669) (out= 1823)(deflated 67%)
adding: exp/Invoice.java(in = 138) (out= 120)(deflated 13%)
adding: exp/Invoice.class(in = 256) (out= 196)(deflated 23%)
adding: exp/Item_COFD.java(in = 2457) (out= 905)(deflated 63%)
adding: exp/Item_COFD.class(in = 2356) (out= 1344)(deflated 42%)
adding: exp/Item_COFD$2.class(in = 1723) (out= 945)(deflated 45%)
adding: exp/Item_COFD$1.class(in = 1141) (out= 609)(deflated 46%)
adding: exp/Item_POL.java(in = 2374) (out= 893)(deflated 62%)
adding: exp/Item_POL.class(in = 2336) (out= 1334)(deflated 42%)
adding: exp/Item_POL$1.class(in = 1136) (out= 609)(deflated 46%)
adding: exp/Item_POL$2.class(in = 1716) (out= 947)(deflated 44%)
adding: exp/Item_POD.java(in = 2387) (out= 894)(deflated 62%)
adding: exp/Item_POD.class(in = 2338) (out= 1338)(deflated 42%)
adding: exp/Item_FD.java(in = 2383) (out= 890)(deflated 62%)
adding: exp/Item_FD.class(in = 2331) (out= 1327)(deflated 43%)
adding: exp/Item_POD$2.class(in = 1716) (out= 947)(deflated 44%)
adding: exp/Item_POD$1.class(in = 1136) (out= 609)(deflated 46%)
adding: exp/Item_FD$2.class(in = 1709) (out= 941)(deflated 44%)
adding: exp/Item_FD$1.class(in = 1131) (out= 604)(deflated 46%)
adding: exp/Item_Bank.class(in = 3454) (out= 2019)(deflated 41%)
adding: exp/Item_Bank$2.class(in = 797) (out= 485)(deflated 39%)
adding: exp/Item_Bank$1.class(in = 1141) (out= 609)(deflated 46%)
adding: exp/TermsListener.class(in = 3095) (out= 1614)(deflated 47%)
adding: exp/Item_Terms.java(in = 2434) (out= 909)(deflated 62%)
adding: exp/Item_Terms$1.class(in = 1146) (out= 608)(deflated 46%)
adding: exp/Item_Terms$2.class(in = 1735) (out= 945)(deflated 45%)
adding: exp/Item_Terms.class(in = 2420) (out= 1364)(deflated 43%)
adding: exp/Menu_Bar$22.class(in = 610) (out= 385)(deflated 36%)
adding: exp/Menu_Bar$9.class(in = 611) (out= 378)(deflated 38%)
adding: exp/Menu_Bar$13.class(in = 635) (out= 397)(deflated 37%)
adding: exp/Menu_Bar$15.class(in = 635) (out= 398)(deflated 37%)
adding: exp/Menu_Bar$23.class(in = 611) (out= 386)(deflated 36%)
adding: exp/Menu_Bar$7.class(in = 614) (out= 388)(deflated 36%)
adding: exp/Menu_Bar$17.class(in = 611) (out= 382)(deflated 37%)
adding: exp/Menu_Bar$3.class(in = 613) (out= 386)(deflated 37%)
adding: exp/Menu_Bar$24.class(in = 635) (out= 395)(deflated 37%)
adding: exp/Menu_Bar$18.class(in = 610) (out= 381)(deflated 37%)
adding: exp/Menu_Bar$14.class(in = 635) (out= 398)(deflated 37%)
adding: exp/Menu_Bar$4.class(in = 633) (out= 399)(deflated 36%)
adding: exp/Menu_Bar$19.class(in = 609) (out= 379)(deflated 37%)
adding: exp/Menu_Bar$16.class(in = 635) (out= 398)(deflated 37%)
adding: exp/Menu_Bar$2.class(in = 612) (out= 391)(deflated 36%)
adding: exp/Menu_Bar$21.class(in = 608) (out= 383)(deflated 37%)
adding: exp/Menu_Bar$12.class(in = 635) (out= 395)(deflated 37%)
adding: exp/Menu_Bar$5.class(in = 611) (out= 389)(deflated 36%)
adding: exp/Menu_Bar$10.class(in = 617) (out= 393)(deflated 36%)
adding: exp/Menu_Bar$6.class(in = 615) (out= 392)(deflated 36%)
adding: exp/Menu_Bar$8.class(in = 633) (out= 385)(deflated 39%)
adding: exp/Menu_Bar$20.class(in = 609) (out= 377)(deflated 38%)
adding: exp/Menu_Bar$11.class(in = 616) (out= 383)(deflated 37%)
adding: exp/Item_COOOG.java(in = 2449) (out= 907)(deflated 62%)
adding: exp/Item_COOOG.class(in = 2361) (out= 1344)(deflated 43%)
adding: exp/Item_COOOG$2.class(in = 1730) (out= 946)(deflated 45%)
adding: exp/Item_COOOG$1.class(in = 1146) (out= 609)(deflated 46%)
adding: exp/Menu_Bar$25.class(in = 704) (out= 437)(deflated 37%)
adding: exp/mymanifest.mf(in = 83) (out= 83)(deflated 0%)
adding: exp/setup.jar(in = 99193) (out= 89928)(deflated 9%)

Then I just double clicked on the jar file....
and the error message "could not find main class. program will exit" comes. Please suggest
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

So your classes are in the package 'exp'? Then the Main-Class line should look like this:

Main-Class: exp.Login


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Sandeep Mukherji
Ranch Hand

Joined: Mar 23, 2008
Posts: 46
Thanks a lot Jesper. It is successfully running now.
Sandeep Mukherji
Ranch Hand

Joined: Mar 23, 2008
Posts: 46
can I change the icon of the setup file to my desired one?
 
 
subject: setup not running
 
Similar Threads
Uploading
executing jar file
Magic Square water retention
Declare an Array?
Convert Into Java Code.