Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 586
  • Last Modified:

How to open .tar file in Java.


 Hi friends, i have to open ".tar" file  in java.  but i dont know how. so can you please give any idea about  opening ".tar" file in java....

 thank you friends.
0
ilaiyaraja
Asked:
ilaiyaraja
  • 9
  • 2
1 Solution
 
Giant2Commented:
0
 
Giant2Commented:
the guideline are like GZIP. Here is an example:
http://www.javaalmanac.com/egs/java.util.zip/UncompressFile.html?l=rel
0
 
Giant2Commented:
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
RuadRauFlessaCommented:
Isn't it possible to open a tar file with a zip utility?
0
 
Giant2Commented:
>Isn't it possible to open a tar file with a zip utility?
No. Tar is different from zip.
0
 
Giant2Commented:
RuadRauFlessa,
See here for the definition of what is TAR file
http://www.fact-index.com/t/ta/tar_file_format.html
0
 
Giant2Commented:
ilaiyaraja,
do you need more help about jakarta compress?
Surfing on
http://jakarta.apache.org/commons/sandbox/compress/
you can find even example. You can find it is similar to the Zip/Jar in JDK (the example I post before).
Instead of, for example:
ZipEntry
you must use:
TarEntry
...
0
 
Giant2Commented:
the classes are in the file ant.jar of the common lib

Do you need other input?
0
 
ilaiyarajaAuthor Commented:
Hello Friends ,
 Thanks for your great response. i got the exact answer. Thanks for you all..
0
 
Giant2Commented:
>i got the exact answer
So you can close this thread.
0
 
RuadRauFlessaCommented:
Thanks for that Giant2
0
 
Giant2Commented:
ilaiyaraja,
Do you solved?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 9
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now