It's not a secret anymore!
The moose likes Beginning Java and the fly likes jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar files" Watch "jar files" New topic

jar files

Shashank Gokhale
Ranch Hand

Joined: Jan 07, 2003
Posts: 92
What is a JAR file and how is it used?

May the force of the Java be in all of us !!!
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Jar is similar to zip files. In java , jar files contains sets of files (mainly class files). Can be used to bundle all the related project/module file together in compressed format. User can set the classpath to jar file and use it .
In other words jar are bundle all the packages of a project/module in a single file and use it by setting the classpath to the jar file.

Sharing is learning
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Executable JAR files can also be created. By 'executable' I mean that it's possible (and easy) to create a Java application all wrapped up inside a JAR file that a user (on any machine with a properly installed J2SE JVM) can simply double click to run. See Creating a JAR File for more information.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: jar files
It's not a secret anymore!