File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Difference between tar and jar file 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 » Servlets
Reply locked New topic

Difference between tar and jar file

lali virdi

Joined: Aug 17, 2004
Posts: 6
please tell me the difference between tar and jar file
Kiran Sonaje

Joined: Aug 23, 2004
Posts: 23

There is no relation between tar file and jar file. tar is zip file made for linux OS, while jar is java file containing no of classes(Java Archiver)
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

tar is zip file made for linux OS

<pedantic>Well it is actually from UNIX: its a shorthand extension denoting a tape archive</pedantic>. It's not specifically for any OS - you'll find utilities to decompress tar files for most OS's. Both tars and jars are simmilar in that they are compressed files. Also jar files don't have to contain Java classes - though its unusual for them not to.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276


Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it


Thanks! and welcome to the JavaRanch!


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Round these parts, posting the same question in multiple forums is bad practice. It can make it rather difficult to follow a conversation, plus folks spend time saying things that were just said.

Please continue over in the duplicate thread in the Linux / UNIX forum.

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