jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes J A R  How To 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 "J A R  How To" Watch "J A R  How To" New topic
Author

J A R How To

Benjoe Reyes
Ranch Hand

Joined: Apr 24, 2002
Posts: 109
how do you create a jar??? what is manifest.tmp??? am i the one to create it??? what should be in it???
please give me a step by step example
thanks
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
A Jar File is really just a zipped file containing all your classes in their subdirectories and associated files.
The Manifest is the file that you create to go along with your jar to give the jvm a clue as to which of these zillion class files is the one that has the main method in it. Of course it does other stuff also.
[ December 09, 2002: Message edited by: Cindy Glass ]

"JavaRanch, where the deer and the Certified play" - David O'Meara
Benjoe Reyes
Ranch Hand

Joined: Apr 24, 2002
Posts: 109
cindy,
so i just type in one file (the source or the class file???)in a note pad and save as : manifest tmp???
Benjoe Reyes
Ranch Hand

Joined: Apr 24, 2002
Posts: 109
cindy,
so i just type in one file (the source or the class file???)in a note pad and save as : manifest.tmp???
Rob Chung
Ranch Hand

Joined: Oct 15, 2002
Posts: 46
In your command line, do
jar -help
and you'll see the options available.
e.g. To create a jar with all the classes within a directory:
jar cvf mfJar.jar c:/myDir/*.class
Benjoe Reyes
Ranch Hand

Joined: Apr 24, 2002
Posts: 109
thanks rob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J A R How To
 
Similar Threads
is table created in cmp at runtime
Can we create GUI screen to collect data from Business people and How this can be achieve.
guaranteed data delivery on top of xml based asynchronous communication
Dynamically specifying and adding executable methods at runtime
What is your procedures to finish the assignment of scjd?