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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar file" Watch "jar file" New topic
Author

jar file

Jo Lee
Ranch Hand

Joined: Jun 26, 2001
Posts: 35
Hello;

How do I create .jar file, and once created, how do I deploy it, then, if I need to modify the source code again, how do I expand the .jar file.
Thanks for your help
Jo
Jo Lee
Ranch Hand

Joined: Jun 26, 2001
Posts: 35
I find the information from the following website:
http://java.sun.com/docs/books/tutorial/jar/basics/
Thanks
Jo
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

To create a jar file, use the jar tool that comes with the JDK. From the command line type: "jar" and it will show you the different commandline options.
The most common command to create a JAR file looks like this:
"jar cvf file.jar com\hp\blah\* "
To un-jar a jar file, you can use a program like Winzip.
For more info, check out this little guide:
http://java.sun.com/products/jdk/1.1/docs/tooldocs/solaris/jar.html


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
 
wood burning stoves
 
subject: jar file