This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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]
It is sorta covered in the JavaRanch Style Guide.
subject: Difference between tar and jar file
It's not a secret anymore!