jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes What is the use of 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 "What is the use of jar file?" Watch "What is the use of jar file?" New topic
Author

What is the use of jar file?

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
Can any one tell what exactly is the use of jar files in java application? For example, if we create a project using netbeans, we add some specific jarfile (for e.g like ojdbc14.jar etc..) depending upon the application. What is the role of these jar files? Mechanism behind it? Thanks in advance.
Regards
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Hi Gopu,

We actully ease our work/effort by adding different jar files. Using it we can do it more effectively. For example, In your project you need to draw different types of charts. To achieve this, we can use some already made classes and packed into a jar(bottle ) JFree Chart. Now you need to use that jar to draw different graphs.
And ojdbc14.jar is used to connect to oracle database.
You can download the source code also of particular API and see how actually particular thing is done and if you wish and they permit you can modify them also.
[ May 26, 2008: Message edited by: Vishal Pandya ]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38041
    
  22
"Jar" is short for Java Archive, and you can find lots more details here
Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
Thanks.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38041
    
  22
You're welcome
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is the use of jar file?
 
Similar Threads
how to develop website for sending SMS
Jar files and archive!
Where to find jar mapping in WAS 6.0
EJB 3.0 & 2.0 compatibility
jar & war files