• Post Reply Bookmark Topic Watch Topic
  • New Topic

Diff between tar and jar  RSS feed

 
lali virdi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
please tell the difference between Tar and Jar file
 
Tim Holloway
Saloon Keeper
Posts: 18792
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TAR stands for "Tape ARchive". JAR stands for Jav ARchive.

Despite the similar names, a JAR file is actually a special form of ZIP file (it has a manifest in it). TAR files (known as "tarballs") serve Unix the way ZIP files serve Windows and JAR files serve Java apps. Aside from the totally different implementation of internal details, TAR files have no compression in them. Instead you compress the entire tarball, usually using the gzip or bzip2 utilities. So "foo.tar.gz" is what you get when you create tar.foo and gzip it. Sometimes the extension is shortened from "tar.gz" to "tgz".
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
lali,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

Thanks Pardner! Hope to see you 'round the Ranch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!