Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the use of jar file?

 
Gopu Akraju
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Jar" is short for Java Archive, and you can find lots more details here
 
Gopu Akraju
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic