File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to tar files from within the java program?

 
Andrew Paul
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

Within a complex process I have to tar a lot of files. Is there a possibility to do it? I have only found java.util.zip and java.util.jar but not .tar.

Or is the result of using java.util.jar the same as the tar-result?

Thank you for your tipps and hints?
Kind regards
Andrew Paul
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at Java Tar Package

There is also an ant task that creates tar file, that, too, might help you.

Good luck!
 
Andrew Paul
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot. Also for the "good luck". I'll try it!

Kind regards
Andrew Paul
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic