This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "java.util.jar" Watch "java.util.jar" New topic
Author

java.util.jar

Sujata A
Greenhorn

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 aa.bb.cc. the package cc contains A.class and other class files. when i create a jar file called simple.jar, it should contain manifest.mf 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
c:\temp\aa\bb\cc\A.class.
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.
thanks
John Wetherbie
Rancher

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


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

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
 
Don't get me started about those stupid light bulbs.
 
subject: java.util.jar
 
Similar Threads
Jar/Unjar using JAVA
Classloading, WAR file extraction
How to read class files from jar file
Pac kages...again
Jarring