File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
how to open the jar file
Thoughts wanted READMDE.txt
Installing java Wireless toolkit
JAR file question
java.sql.SQLException: [Microsoft][ODBC Driver Manager]