Solved

How to open .tar file in Java.

Posted on 2004-10-08
14
553 Views
Last Modified: 2008-02-01

 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
Comment
Question by:ilaiyaraja
  • 9
  • 2
14 Comments
 
LVL 12

Accepted Solution

by:
Giant2 earned 500 total points
ID: 12257281
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257289
the guideline are like GZIP. Here is an example:
http://www.javaalmanac.com/egs/java.util.zip/UncompressFile.html?l=rel
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257293
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:RuadRauFlessa
ID: 12257354
Isn't it possible to open a tar file with a zip utility?
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257377
>Isn't it possible to open a tar file with a zip utility?
No. Tar is different from zip.
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257406
RuadRauFlessa,
See here for the definition of what is TAR file
http://www.fact-index.com/t/ta/tar_file_format.html
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257444
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
 
LVL 12

Expert Comment

by:Giant2
ID: 12257477
the classes are in the file ant.jar of the common lib

Do you need other input?
0
 

Author Comment

by:ilaiyaraja
ID: 12257558
Hello Friends ,
 Thanks for your great response. i got the exact answer. Thanks for you all..
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12257595
>i got the exact answer
So you can close this thread.
0
 
LVL 3

Expert Comment

by:RuadRauFlessa
ID: 12257659
Thanks for that Giant2
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12259239
ilaiyaraja,
Do you solved?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
use lov values 2 71
spring jars download 1 52
ejb on wildfly 5 45
junit example issue 2 22
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question