File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes java.util.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "java.util.jar" Watch "java.util.jar" New topic


Sujata A

Joined: Dec 08, 2000
Posts: 4
hi everyone,
i want to create a jar file which contains class files from packages. and when i unjar them (ie extract them into a directory ) it should appear in the proper directory structure.
eg if i have a package named the package cc contains A.class and other class files. when i create a jar file called simple.jar, it should contain and A.class and the other class files. when i extract them in c drive, in a directory temp then it should appear in this format
my application has a constraint that it cannot use the jar utilty of jdk. so i need to do it using the java.util.jar package only.
Please let me know how i should go about this problem.
John Wetherbie

Joined: Apr 05, 2000
Posts: 1449
Your registered username is right on the borderline of the naming policy. Please read the JavaRanch naming policy and think about re-registering.

The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
Hi, didn't have a lot of time, see if this gives you a good starting point.

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
I agree. Here's the link:
subject: java.util.jar
It's not a secret anymore!