wood burning stoves
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 Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar file" Watch "jar file" New topic

jar file

Jo Lee
Ranch Hand

Joined: Jun 26, 2001
Posts: 35

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 Lee
Ranch Hand

Joined: Jun 26, 2001
Posts: 35
I find the information from the following website:
Jessica Sant

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:

- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
I agree. Here's the link: http://aspose.com/file-tools
subject: jar file
jQuery in Action, 3rd edition