aspose file tools
The moose likes Java in General and the fly likes J A R  How To Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: J A R How To
 
Similar Threads
Can we create GUI screen to collect data from Business people and How this can be achieve.
What is your procedures to finish the assignment of scjd?
is table created in cmp at runtime
guaranteed data delivery on top of xml based asynchronous communication
Dynamically specifying and adding executable methods at runtime