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 create jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "create jar files" Watch "create jar files" New topic

create jar files

Lara Smith

Joined: Jul 17, 2003
Posts: 1
Can someone tell me how to create jar files ? and what is purpose of that ?
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Check this Source
This is used to pack classes to one archive.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Lara!
Take a look at The JAR Files Trail of Sun's Java Tutorial.
As Oliver mentioned, a JAR file enables you to store multiple files (esp. class files) into one file. Another use of a JAR file is making an executable JAR, such that the user of your application need only double-click on the JAR file to start the application. For more information, take a look at the Creating An Executable JAR File thread.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: create jar files