File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes tar files extraction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "tar files extraction" Watch "tar files extraction" New topic
Author

tar files extraction

Seema Bhatia
Ranch Hand

Joined: Apr 27, 2001
Posts: 36
How to extract files with extension tar.gz. I have downloaded the file for mysql but unable to configure it with tomcat.
Any help will be appreciated.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
Use gunzip utility to uncompress the tar file.
ex:
gunzip test.jar.gz
The output for this will give test.jar
now use
tar -xvf test.jar
Hope this will help you.
Ravi :-)
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Depends on what platform you wish to do it on. Ona unix/Linux system use gunzip and then tar as described above. On a Windows system, the easiest way is to open the file with WinZip, which understands the format and can extract it to a directory of your choosing.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
Consider Paul's rocket mass heater.
 
subject: tar files extraction