Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Android Security Essentials Live Lessons this week in the Android 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:
subject: jar file
Similar Threads
JAR file question
how to open the jar file
java.sql.SQLException: [Microsoft][ODBC Driver Manager]
Thoughts wanted READMDE.txt
Installing java Wireless toolkit