[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to open .tar file in Java.

Posted on 2004-10-08
14
Medium Priority
?
573 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
12 Comments
 
LVL 12

Accepted Solution

by:
Giant2 earned 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month19 days, 18 hours left to enroll

872 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