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
posted
0
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
posted
0
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
posted
0
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
posted
0
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
posted
0
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.