File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Jar a folder using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Jar a folder using Java

renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Hi,
IN UNIX and DOS, we have jar and unjar command, using which we can jar and unjar a jar file. I googled to find the how this can be done in java. Got couple of sites, but it seems to be quite big. Can anyone help me with suggesting the ways how this can be done quite simpler.


Cheers,
Richard
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Recommended reading http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jar.html
Its quite simple. Invoke the jar command with required flags.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19785
    
  20

Renu, please UseOneThreadPerQuestion. This question is identical to this one. Closing this thread.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jar a folder using Java