Bookmark Topic Watch Topic
  • New Topic

Difference between tar and jar file

 
lali virdi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi
please tell me the difference between tar and jar file
 
Kiran Sonaje
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello,

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
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Report post to moderator

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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
SECOND NOTICE

"lali"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic