Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.util.jar

 
Sujata A
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, didn't have a lot of time, see if this gives you a good starting point.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic