This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar files" Watch "jar files" New topic
Author

jar files

Shashank Gokhale
Ranch Hand

Joined: Jan 07, 2003
Posts: 90
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
Sheriff

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: http://aspose.com/file-tools
 
subject: jar files
 
Similar Threads
Which one do I do first.
Final Packaging "scjda-srXXXXXXX.jar" question!
EJB packager ?
WA #1.....word association
MySQL with ant: can not find driver class